fleche.storage.void

Classes

VoidBackend

A concrete implementation of Storage that does not store anything.

ValueVoid

Bridges ValueStorage with StorageBackend primitives.

CallVoid

Bridges CallStorage with StorageBackend primitives.

Module Contents

class fleche.storage.void.VoidBackend[source]

Bases: fleche.storage.base.StorageBackend

A concrete implementation of Storage that does not store anything.

put(value: Any, key: fleche.digest.Digest) fleche.digest.Digest[source]
get(key: fleche.digest.Digest) Any[source]
list() Iterable[fleche.digest.Digest][source]
_evict(key: fleche.digest.Digest) None[source]
_contains(key: fleche.digest.Digest) bool[source]
class fleche.storage.void.ValueVoid[source]

Bases: fleche.storage.base.ValueMixin, fleche.storage.base.DestructuringMixin, VoidBackend

Bridges ValueStorage with StorageBackend primitives.

Implements save and load using put and get. Concrete classes inherit from this and a StorageBackend implementation to get a fully functional value storage.

class fleche.storage.void.CallVoid[source]

Bases: fleche.storage.base.CallMixin, VoidBackend

Bridges CallStorage with StorageBackend primitives.

Implements save, load, and query using put and get, deriving the storage key from the call’s lookup key. transform is inherited from CallStorage.

Concrete classes inherit from this and a StorageBackend implementation to get a fully functional call storage.