swh.objstorage.backends.in_memory module#
- class swh.objstorage.backends.in_memory.InMemoryObjStorage(**args)[source]#
Bases:
ObjStorage
In-Memory objstorage.
Intended for test purposes.
- PRIMARY_HASH: Literal['sha1', 'sha256'] = 'sha1'#
- get(obj_id: bytes | CompositeObjId) bytes [source]#
- delete(obj_id: bytes | CompositeObjId)[source]#