[3.0.x] Updated the default cache key transformation in documentation.

Follow up to 6c69de80bd.
Backport of 3f141719a1 from master
This commit is contained in:
Ryan Nowakowski 2019-09-24 05:42:43 -05:00 committed by Mariusz Felisiak
parent 1319124aa9
commit 525c7e2afe
1 changed files with 1 additions and 1 deletions

View File

@ -1031,7 +1031,7 @@ key version to provide a final cache key. By default, the three parts
are joined using colons to produce a final string::
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
processing to the final key (e.g., taking a hash digest of the key