fleche.storage.memory
Classes
A concrete implementation of Storage that stores values in an in-memory dictionary. |
|
Bridges |
|
Bridges |
Module Contents
- class fleche.storage.memory.MemoryBackend[source]
Bases:
fleche.storage.base.StorageBackendA concrete implementation of Storage that stores values in an in-memory dictionary.
- storage: dict[fleche.digest.Digest, Any][source]
- list() Iterable[fleche.digest.Digest][source]
- put(value: Any, key: fleche.digest.Digest) fleche.digest.Digest[source]
- get(key: fleche.digest.Digest) Any[source]
- _contains(key: fleche.digest.Digest) bool[source]
- _evict(key: fleche.digest.Digest) None[source]
- class fleche.storage.memory.ValueMemory[source]
Bases:
fleche.storage.base.ValueMixin,fleche.storage.base.DestructuringMixin,MemoryBackendBridges
ValueStoragewithStorageBackendprimitives.Implements
saveandloadusingputandget. Concrete classes inherit from this and aStorageBackendimplementation to get a fully functional value storage.
- class fleche.storage.memory.CallMemory[source]
Bases:
fleche.storage.base.CallMixin,MemoryBackendBridges
CallStoragewithStorageBackendprimitives.Implements
save,load, andqueryusingputandget, deriving the storage key from the call’s lookup key.transformis inherited fromCallStorage.Concrete classes inherit from this and a
StorageBackendimplementation to get a fully functional call storage.