0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 21:03:51 +01:00
This commit is contained in:
Erik Johnston 2017-02-02 13:50:22 +00:00
parent 832e9c52ca
commit 9efcc3f3be

View file

@ -478,6 +478,8 @@ class CacheListDescriptor(object):
class _CacheContext(namedtuple("_CacheContext", ("cache", "key"))):
# We rely on _CacheContext implementing __eq__ and __hash__ sensibly,
# which namedtuple does for us.
def invalidate(self):
self.cache.invalidate(self.key)