mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 18:24:50 -04:00
Make cache_context an explicit option
This commit is contained in:
parent
f164fd9220
commit
dc76a3e909
3 changed files with 30 additions and 11 deletions
|
@ -211,7 +211,7 @@ class CacheDecoratorTestCase(unittest.TestCase):
|
|||
callcount[0] += 1
|
||||
return key
|
||||
|
||||
@cached()
|
||||
@cached(cache_context=True)
|
||||
def func2(self, key, cache_context):
|
||||
callcount2[0] += 1
|
||||
return self.func(key, cache_context=cache_context)
|
||||
|
@ -244,7 +244,7 @@ class CacheDecoratorTestCase(unittest.TestCase):
|
|||
callcount[0] += 1
|
||||
return key
|
||||
|
||||
@cached()
|
||||
@cached(cache_context=True)
|
||||
def func2(self, key, cache_context):
|
||||
callcount2[0] += 1
|
||||
return self.func(key, cache_context=cache_context)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue