Exemple #1
0
 async def get_metadata(self) -> BaseStoreMetaData:
     return BaseStoreMetaData.from_dict(
         ast.literal_eval(self._db['metadata'].decode('utf-8')))
Exemple #2
0
 async def get_metadata(self) -> BaseStoreMetaData:
     if 'metadata' not in self._db:
         raise StoreKeyNotFound
     return BaseStoreMetaData.from_dict(
         ast.literal_eval(self._db['metadata'].decode('utf-8')))