Fix docstring for get_memoization_decorator
The example usage did not match the current signature of the function. Change-Id: I1c1022d53942ae5f5be36b377a68b4a154381fc1
This commit is contained in:
parent
6e9f7226c8
commit
f29cb97512
@ -313,8 +313,8 @@ def get_memoization_decorator(conf, region, group, expiration_group=None):
|
||||
|
||||
import oslo_cache.core
|
||||
|
||||
MEMOIZE = oslo_cache.core.get_memoization_decorator(conf,
|
||||
group='group1')
|
||||
MEMOIZE = oslo_cache.core.get_memoization_decorator(
|
||||
conf, region, group='group1')
|
||||
|
||||
@MEMOIZE
|
||||
def function(arg1, arg2):
|
||||
@ -322,7 +322,7 @@ def get_memoization_decorator(conf, region, group, expiration_group=None):
|
||||
|
||||
|
||||
ALTERNATE_MEMOIZE = oslo_cache.core.get_memoization_decorator(
|
||||
conf, group='group2', expiration_group='group3')
|
||||
conf, region, group='group2', expiration_group='group3')
|
||||
|
||||
@ALTERNATE_MEMOIZE
|
||||
def function2(arg1, arg2):
|
||||
|
Loading…
x
Reference in New Issue
Block a user