import collections
InventoryItem = collections.namedtuple('InventoryItem', 'type stream payload expires tag')
class Storage(object):
pass
# def __init__(self):
# super(self.__class__, self).__init__()
class InventoryStorage(Storage, collections.MutableMapping):
def __init__(self):
self.numberOfInventoryLookupsPerformed = 0
def __contains__(self, hash):
raise NotImplementedError
def __getitem__(self, hash):
def __setitem__(self, hash, value):
def __delitem__(self, hash):
def __iter__(self):
def __len__(self):
def by_type_and_tag(self, objectType, tag):
def unexpired_hashes_by_stream(self, stream):
def flush(self):
def clean(self):
class MailboxStorage(Storage, collections.MutableMapping):