-
- Downloads
Swap RepositoryHashCache to UNLINK
Improves the delete performance for RepositoryHashCache by sending a single UNLINK call for multiple keys, rather than multiple DEL calls for each key. This is the same implementation as used in Gitlab::SetCache.
Showing
- changelogs/unreleased/hash-cache-unlink.yml 5 additions, 0 deletionschangelogs/unreleased/hash-cache-unlink.yml
- lib/gitlab/repository_cache_adapter.rb 1 addition, 1 deletionlib/gitlab/repository_cache_adapter.rb
- lib/gitlab/repository_hash_cache.rb 12 additions, 4 deletionslib/gitlab/repository_hash_cache.rb
- spec/lib/gitlab/repository_cache_adapter_spec.rb 1 addition, 2 deletionsspec/lib/gitlab/repository_cache_adapter_spec.rb
- spec/lib/gitlab/repository_hash_cache_spec.rb 18 additions, 0 deletionsspec/lib/gitlab/repository_hash_cache_spec.rb
- spec/models/repository_spec.rb 8 additions, 4 deletionsspec/models/repository_spec.rb
changelogs/unreleased/hash-cache-unlink.yml
0 → 100644