soil.storage.compound_storage
Module for the compound storage
#
CompoundStorage ObjectsA meta storage composed of other storages as a dict.
Example:
compound = CompoundStorage(storages={
"db"
- Elasticsearch(index="index1"),"disk"
- ObjectStorage() }) compound["second_db"] = ElasticSearch(index="index2") compound["db"].search(query=myquery)
#
__getitem__Return the storage with that storage_name
#
__setitem__Set storage to that storage_name
#
__len__Returns the number of storages
#
itemsReturns an iterable of sotrage_name, storage tuples