Skip to content
Snippets Groups Projects
Commit 9efcc3f3 authored by Erik Johnston's avatar Erik Johnston
Browse files

Comment

parent 832e9c52
No related branches found
No related tags found
No related merge requests found
...@@ -478,6 +478,8 @@ class CacheListDescriptor(object): ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment