Source code for reip.stores.base

from .pointers import Pointer
from .customer import Customer


[docs]class BaseStore: '''A base class for Stores.''' Pointer = Pointer Customer = Customer def __str__(self): return '<{} n={}>'.format(self.__class__.__name__, len(self)) def __len__(self): raise NotImplementedError def put(self, data, meta=None, id=None): raise NotImplementedError def get(self, id): raise NotImplementedError def delete(self, ids): raise NotImplementedError