From 3f141719a198983a41840e3c2ea542f87c92e4c1 Mon Sep 17 00:00:00 2001 From: Ryan Nowakowski Date: Tue, 24 Sep 2019 05:42:43 -0500 Subject: [PATCH] Updated the default cache key transformation in documentation. Follow up to 6c69de80bdcd2744bc64cb933c2d863dd5e74a33. --- docs/topics/cache.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt index bbaa1e0ba6..2bd25afd42 100644 --- a/docs/topics/cache.txt +++ b/docs/topics/cache.txt @@ -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