Module store

Source
Expand description

The event cache stores holds events and downloaded media when the cache was activated to save bandwidth at the cost of increased storage space usage.

Implementing the EventCacheStore trait, you can plug any storage backend into the event cache for the actual storage. By default this brings an in-memory store.

Modules§

media
Types and traits regarding media caching of the event cache store.

Structs§

EventCacheStoreLock
The high-level public type to represent an EventCacheStore lock.
EventCacheStoreLockGuard
An RAII implementation of a “scoped lock” of an EventCacheStoreLock. When this structure is dropped (falls out of scope), the lock will be unlocked.
MemoryStore
In-memory, non-persistent implementation of the EventCacheStore.

Enums§

EventCacheStoreError
Event cache store specific error type.
StoreEncryptionError
Error type for the StoreCipher operations.

Constants§

DEFAULT_CHUNK_CAPACITY
A default capacity for linked chunks, when manipulating in conjunction with an EventCacheStore implementation.

Traits§

EventCacheStore
An abstract trait that can be used to implement different store backends for the event cache of the SDK.
IntoEventCacheStore
A type that can be type-erased into Arc<dyn EventCacheStore>.

Type Aliases§

DynEventCacheStore
A type-erased EventCacheStore.
Result
An EventCacheStore specific result type.