core (memory/persistent): new LazyPersistentBinaryDict.remove method
This commit is contained in:
parent
24468a9138
commit
c87e9a23e3
1 changed files with 8 additions and 0 deletions
|
|
@ -241,3 +241,11 @@ class LazyPersistentBinaryDict(PersistentBinaryDict):
|
|||
@return: deferred fired when data is actually saved
|
||||
"""
|
||||
return self.storage.setPrivateValue(self.namespace, name, value, self.binary, self.profile)
|
||||
|
||||
def remove(self, key):
|
||||
"""Delete a key from sotrage, and return a deferred called when it's done
|
||||
|
||||
@param key(unicode): key to delete
|
||||
@return (D): A deferred fired when delete is done
|
||||
"""
|
||||
return self.storage.delPrivateValue(self.namespace, key, self.binary, self.profile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue