pub struct Limits {
pub max_intset_entries: usize,
pub max_listpack_entries: usize,
pub max_listpack_value: usize,
}Expand description
Where the encodings change over.
These are set-max-intset-entries, set-max-listpack-entries and
set-max-listpack-value, and they are runtime configuration in Redis, so
they are a value passed in here rather than three constants. The defaults are
Redis’s defaults and a client that never touches CONFIG SET sees exactly
the encodings a real server would give it.
Fields§
§max_intset_entries: usizePast this many members an all integer set stops being an intset.
max_listpack_entries: usizeAt this many members a set stops being a listpack.
max_listpack_value: usizeA member longer than this cannot go in a listpack.
Implementations§
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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