def delete(self, key, cas=0, quiet=None, persist_to=0, replicate_to=0):
     if key not in self.data:
         raise NotFoundError("not found")
     if key in self.locks:
         if cas != self.locks[key]:
             raise KeyExistsError("Key exits")
     del self.data[key]
     self.update_views(key, None)
 def replace(self,
             key,
             value,
             cas=0,
             ttl=0,
             format=None,
             persist_to=0,
             replicate_to=0):
     if key not in self.data:
         raise NotFoundError("not found")
     self.data[key] = value
     self.update_views(key, value)
 def get(self, key, ttl=0, quiet=None, replica=False, no_format=False):
     if key not in self.data:
         raise NotFoundError("not found")
     return ValueResult(key, self.data[key])