Mercurial > libervia-backend
comparison sat/memory/persistent.py @ 2734:9702025f6dff
core (memory/persistent): new LazyPersistentBinaryDict.remove method
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 02 Jan 2019 18:24:14 +0100 |
parents | e107089d6640 |
children | 378188abe941 |
comparison
equal
deleted
inserted
replaced
2733:e347e32aa07f | 2734:9702025f6dff |
---|---|
239 | 239 |
240 @param value(object): value is needed for LazyPersistentBinaryDict | 240 @param value(object): value is needed for LazyPersistentBinaryDict |
241 @return: deferred fired when data is actually saved | 241 @return: deferred fired when data is actually saved |
242 """ | 242 """ |
243 return self.storage.setPrivateValue(self.namespace, name, value, self.binary, self.profile) | 243 return self.storage.setPrivateValue(self.namespace, name, value, self.binary, self.profile) |
244 | |
245 def remove(self, key): | |
246 """Delete a key from sotrage, and return a deferred called when it's done | |
247 | |
248 @param key(unicode): key to delete | |
249 @return (D): A deferred fired when delete is done | |
250 """ | |
251 return self.storage.delPrivateValue(self.namespace, key, self.binary, self.profile) |