diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-07-17 14:50:03 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-07-17 14:50:03 +0200 |
commit | 67ca5a53f6df0c3d0f2598c777491c0548d76e50 (patch) | |
tree | adbd12e3b93c6f79335625dd2769843e15676341 /lib/repository_cache.rb | |
parent | 881fbe5070331f934fff3441dbc0e65377b030bf (diff) | |
download | gitlab-ce-67ca5a53f6df0c3d0f2598c777491c0548d76e50.tar.gz |
Build missing cache items in background job after each push
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/repository_cache.rb')
-rw-r--r-- | lib/repository_cache.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/repository_cache.rb b/lib/repository_cache.rb index fa016a170cd..639687067ec 100644 --- a/lib/repository_cache.rb +++ b/lib/repository_cache.rb @@ -18,4 +18,8 @@ class RepositoryCache def fetch(key, &block) backend.fetch(cache_key(key), &block) end + + def exist?(key) + backend.exist?(key) + end end |