pub struct MemoryCacheStore { /* private fields */ }Expand description
Re-exported public API.
Public Caelix type MemoryCacheStore.
Implementations§
Source§impl MemoryCacheStore
impl MemoryCacheStore
Sourcepub fn new() -> MemoryCacheStore
pub fn new() -> MemoryCacheStore
Runs the new public API operation.
Sourcepub fn with_options(options: MemoryCacheOptions) -> MemoryCacheStore
pub fn with_options(options: MemoryCacheOptions) -> MemoryCacheStore
Runs the with_options public API operation.
Trait Implementations§
Source§impl CacheStore for MemoryCacheStore
impl CacheStore for MemoryCacheStore
Source§fn get(
&self,
key: String,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, HttpException>> + Send + '_>>
fn get( &self, key: String, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, HttpException>> + Send + '_>>
Public Caelix API.
Source§fn set(
&self,
key: String,
value: Value,
ttl: Option<Duration>,
) -> Pin<Box<dyn Future<Output = Result<(), HttpException>> + Send + '_>>
fn set( &self, key: String, value: Value, ttl: Option<Duration>, ) -> Pin<Box<dyn Future<Output = Result<(), HttpException>> + Send + '_>>
Public Caelix API.
Source§impl Default for MemoryCacheStore
impl Default for MemoryCacheStore
Source§fn default() -> MemoryCacheStore
fn default() -> MemoryCacheStore
Returns the “default value” for a type. Read more
Source§impl Injectable for MemoryCacheStore
impl Injectable for MemoryCacheStore
Source§fn dependencies() -> Vec<ProviderDependency>
fn dependencies() -> Vec<ProviderDependency>
Dependencies resolved while constructing this provider. Read more
Source§fn create(
_container: &Container,
) -> Pin<Box<dyn Future<Output = Result<MemoryCacheStore, HttpException>> + Send + '_>>
fn create( _container: &Container, ) -> Pin<Box<dyn Future<Output = Result<MemoryCacheStore, HttpException>> + Send + '_>>
Public Caelix API.
Source§fn on_module_init(
&self,
) -> Pin<Box<dyn Future<Output = Result<(), HttpException>> + Send + '_>>
fn on_module_init( &self, ) -> Pin<Box<dyn Future<Output = Result<(), HttpException>> + Send + '_>>
Public Caelix API.
Source§fn on_bootstrap(
&self,
) -> Pin<Box<dyn Future<Output = Result<(), HttpException>> + Send + '_>>
fn on_bootstrap( &self, ) -> Pin<Box<dyn Future<Output = Result<(), HttpException>> + Send + '_>>
Public Caelix API.
Source§fn on_shutdown(
&self,
) -> Pin<Box<dyn Future<Output = Result<(), HttpException>> + Send + '_>>
fn on_shutdown( &self, ) -> Pin<Box<dyn Future<Output = Result<(), HttpException>> + Send + '_>>
Public Caelix API.
Auto Trait Implementations§
impl !Freeze for MemoryCacheStore
impl RefUnwindSafe for MemoryCacheStore
impl Send for MemoryCacheStore
impl Sync for MemoryCacheStore
impl Unpin for MemoryCacheStore
impl UnsafeUnpin for MemoryCacheStore
impl UnwindSafe for MemoryCacheStore
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