[2.2.x] Updated the default cache key transformation in documentation.
Follow up to6c69de80bd
. Backport of3f141719a1
from master
This commit is contained in:
parent
29d2f5a662
commit
f314cebe82
|
@ -1038,7 +1038,7 @@ key version to provide a final cache key. By default, the three parts
|
||||||
are joined using colons to produce a final string::
|
are joined using colons to produce a final string::
|
||||||
|
|
||||||
def make_key(key, key_prefix, version):
|
def make_key(key, key_prefix, version):
|
||||||
return ':'.join([key_prefix, str(version), key])
|
return '%s:%s:%s' % (key_prefix, version, key)
|
||||||
|
|
||||||
If you want to combine the parts in different ways, or apply other
|
If you want to combine the parts in different ways, or apply other
|
||||||
processing to the final key (e.g., taking a hash digest of the key
|
processing to the final key (e.g., taking a hash digest of the key
|
||||||
|
|
Loading…
Reference in New Issue