pub struct InMemoryCacheBuilder(_);
Expand description
Builder to configure and construct an InMemoryCache
.
Implementations§
source§impl InMemoryCacheBuilder
impl InMemoryCacheBuilder
sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a builder to configure and construct an InMemoryCache
.
sourcepub fn build(self) -> InMemoryCache
pub fn build(self) -> InMemoryCache
Consume the builder, returning a configured cache.
sourcepub const fn resource_types(self, resource_types: ResourceType) -> Self
pub const fn resource_types(self, resource_types: ResourceType) -> Self
Sets the list of resource types for the cache to handle.
Defaults to all types.
sourcepub const fn message_cache_size(self, message_cache_size: usize) -> Self
pub const fn message_cache_size(self, message_cache_size: usize) -> Self
Sets the number of messages to cache per channel.
Defaults to 100.
Trait Implementations§
source§impl Debug for InMemoryCacheBuilder
impl Debug for InMemoryCacheBuilder
source§impl Default for InMemoryCacheBuilder
impl Default for InMemoryCacheBuilder
source§fn default() -> InMemoryCacheBuilder
fn default() -> InMemoryCacheBuilder
Returns the “default value” for a type. Read more