Crate oml_storage

Source
Expand description

A very simple wrapper to handle locked storage of items.

Provides an abstraction over storage backends. The core idea is that storage items will be locked in storage and stay hot in memory for a while.

Note: The documentation is still work-in-progress.

Structs§

ExternalId
An identifier for external systems with a prefix
RandomId
A nanoid-based random identifier
SequentialId
A sequential numeric identifier
SimpleExternalId
An identifier for external systems
StorageDisk
StorageDynamoDb
StorageLock
Represents an exclusive lock on a storage item.
StorageNull

Enums§

LockNewResult
Result type for lock operations specifically on new items.
LockResult
Result type for lock operations on existing or new items.

Traits§

Storage
Storage is the core trait for interacting with stored items.
StorageId
Trait for storage item identifiers
StorageItem
The trait your items need to implement to be storable