shardmap 0.2.1

Sharded embedded in-memory map with optional cache, protocol, and server internals
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::commands::hexpire::{TimeBase, TimeUnit, run_hash_field_expire};
use crate::commands::redis::define_redis_command;
use crate::protocol::Frame;
use crate::storage::EmbeddedStore;

define_redis_command!(HPExpireAt, "HPEXPIREAT", true);

impl crate::commands::redis::RedisCommand for HPExpireAt {
    fn execute(store: &EmbeddedStore, args: &[&[u8]]) -> Frame {
        run_hash_field_expire(
            store,
            args,
            "HPEXPIREAT",
            TimeUnit::Millis,
            TimeBase::Absolute,
        )
    }
}