diff options
Diffstat (limited to 'lib/gitlab/repository_cache_adapter.rb')
-rw-r--r-- | lib/gitlab/repository_cache_adapter.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/repository_cache_adapter.rb b/lib/gitlab/repository_cache_adapter.rb index d0230c035cc..c096c870f2a 100644 --- a/lib/gitlab/repository_cache_adapter.rb +++ b/lib/gitlab/repository_cache_adapter.rb @@ -217,6 +217,10 @@ module Gitlab fallback end + def memoize_method_cache_value(method, value) + strong_memoize(memoizable_name(method)) { value } + end + # Expires the caches of a specific set of methods def expire_method_caches(methods) methods.each do |name| |