[][src]Trait sledis::list::ListReadStore

pub trait ListReadStore: ReadStore {
    fn list_get_meta(&self, name: &[u8]) -> Result<Meta, Self::Error>;
fn list_len(&self, name: &[u8]) -> Result<u64, Self::Error>;
fn list_get(
        &self,
        name: &[u8],
        ix: u64
    ) -> Result<Option<IVec>, Self::Error>; }

Types that implement this trait provide a byte-slice-indexed table of arrays. ListReadStore is implemented for arbitrary ReadStores.

Required methods

fn list_get_meta(&self, name: &[u8]) -> Result<Meta, Self::Error>

fn list_len(&self, name: &[u8]) -> Result<u64, Self::Error>

fn list_get(&self, name: &[u8], ix: u64) -> Result<Option<IVec>, Self::Error>

Loading content...

Implementors

impl<S> ListReadStore for S where
    S: ReadStore,
    S::Error: From<Error>, 
[src]

Loading content...