[−][src]Trait iredismodule::rtype::TypeMethod
A help trait for registing new data type
Associated Constants
const AUX_SAVE_TRIGGERS: AuxSaveTriggerFlag
Bit flags control when triggers the aux_load and aux_save callbacks
Provided methods
fn rdb_load(io: &mut IO, encver: u32) -> Option<Box<Self>>
A callback function pointer that loads data from RDB files
fn rdb_save(&self, io: &mut IO)
A callback function pointer that saves data to RDB files.
fn aof_rewrite<T: AsRef<str>>(&self, io: &mut IO, key: T)
A callback function pointer that rewrites data as commands.
fn mem_usage(&self) -> usize
A callback function pointer that report memory usage
It should currently be omitted since it is not yet implemented inside the Redis modules core.
fn digest(&self, digest: &mut Digest)
A callback function pointer that is used for DEBUG DIGEST
.
It should currently be omitted since it is not yet implemented inside the Redis modules core.
fn free(value: Box<Self>)
A callback function pointer that can free a type value.
fn aux_save(rdb: &mut IO, when: i32)
A callback function pointer that loads out of keyspace data from RDB files.
fn aux_load(rdb: &mut IO, encver: u32, when: i32)
A callback function pointer that saves out of keyspace data to RDB files.