core: added get method to PersistentDictionary
This commit is contained in:
parent
383f58333f
commit
0a1047bf45
1 changed files with 3 additions and 0 deletions
|
|
@ -104,6 +104,9 @@ class PersistentDict:
|
|||
self.storage.delIndPrivate(self.namespace, key, self.profile)
|
||||
return self._cache.__delitem__(key)
|
||||
|
||||
def get(self, key, default=None):
|
||||
return self._cache.get(key, default)
|
||||
|
||||
def force(self, name):
|
||||
"""Force saving of an attribute to storage
|
||||
@return: deferred fired when data is actually saved"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue