Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-09-30 09:09:27 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-09-30 09:09:27 +0300
commitb920d2a9831056cdf907cf71fd25d94f0aaf1e6c (patch)
tree37d937a61754aa5072fd607fbd2aa8ed00225d6a /lib/gitlab/cache
parent3778629470659207d15cbc8b7064b0eb3caf09ef (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/cache')
-rw-r--r--lib/gitlab/cache/import/caching.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/cache/import/caching.rb b/lib/gitlab/cache/import/caching.rb
index 947efee43a9..4dbce0b05e1 100644
--- a/lib/gitlab/cache/import/caching.rb
+++ b/lib/gitlab/cache/import/caching.rb
@@ -84,8 +84,10 @@ module Gitlab
key = cache_key_for(raw_key)
Redis::Cache.with do |redis|
- redis.incr(key)
+ value = redis.incr(key)
redis.expire(key, timeout)
+
+ value
end
end