fix group cache
This commit is contained in:
parent
6d659b8049
commit
0a4689387b
3 changed files with 8 additions and 3 deletions
|
|
@ -23,3 +23,8 @@ class Cache(dict):
|
|||
if key in self._added:
|
||||
del self._added[key]
|
||||
del self[key]
|
||||
|
||||
def clear(self, prefix):
|
||||
for key in list(self):
|
||||
if key.startswith(prefix):
|
||||
self.delete(key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue