mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 12:00:21 +00:00
Comment
This commit is contained in:
parent
832e9c52ca
commit
9efcc3f3be
1 changed files with 2 additions and 0 deletions
|
@ -478,6 +478,8 @@ class CacheListDescriptor(object):
|
||||||
|
|
||||||
|
|
||||||
class _CacheContext(namedtuple("_CacheContext", ("cache", "key"))):
|
class _CacheContext(namedtuple("_CacheContext", ("cache", "key"))):
|
||||||
|
# We rely on _CacheContext implementing __eq__ and __hash__ sensibly,
|
||||||
|
# which namedtuple does for us.
|
||||||
def invalidate(self):
|
def invalidate(self):
|
||||||
self.cache.invalidate(self.key)
|
self.cache.invalidate(self.key)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue