Enum rustis::commands::TsEncoding
source · pub enum TsEncoding {
Compressed,
Uncompressed,
}
Available on crate feature
redis-time-series
only.Expand description
specifies the series samples encoding format.
Compressed
is almost always the right choice.
Compression not only saves memory but usually improves performance due to a lower number of memory accesses.
It can result in about 90% memory reduction. The exception are highly irregular timestamps or values, which occur rarely.
When not specified, the option is set to Compressed
.
Variants§
Compressed
applies compression to the series samples.
Uncompressed
keeps the raw samples in memory.
Adding this flag keeps data in an uncompressed form.
Trait Implementations§
source§impl ToArgs for TsEncoding
impl ToArgs for TsEncoding
source§fn write_args(&self, args: &mut CommandArgs)
fn write_args(&self, args: &mut CommandArgs)
Write this Rust type as one ore multiple args into CommandArgs. Read more
Auto Trait Implementations§
impl Freeze for TsEncoding
impl RefUnwindSafe for TsEncoding
impl Send for TsEncoding
impl Sync for TsEncoding
impl Unpin for TsEncoding
impl UnwindSafe for TsEncoding
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more