changeset 8328:fae2108f65e5

cache: drop unused set_value - it is handled by cache.get_value by calling createfunc
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 30 Mar 2020 14:52:01 +0200
parents 8c57eda0823e
children 6484a0fc0e0b
files kallithea/lib/caching_query.py
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/lib/caching_query.py	Mon Mar 30 13:03:33 2020 +0200
+++ b/kallithea/lib/caching_query.py	Mon Mar 30 14:52:01 2020 +0200
@@ -99,12 +99,6 @@
             ret = self.merge_result(ret, load=False)
         return ret
 
-    def set_value(self, value):
-        """Set the value in the cache for this query."""
-
-        cache, cache_key = _get_cache_parameters(self)
-        cache.put(cache_key, value)
-
 
 def query_callable(manager, query_cls=CachingQuery):
     def query(*arg, **kw):