-
- Downloads
Swap to UNLINK for Redis set cache
This uses UNLINK in Redis 4 to delete sets. This unlinks the key from the value but actually deletes the value asynchronously. With large sets this should give us a reasonable performance boost. This commit also implements multi-key deletes for RepositorySetCache methods in the Repository model, meaning only one UNLINK call will be issued for all sets being expired.
parent
960eff07
No related branches found
No related tags found
Showing
- changelogs/unreleased/unlink-cache-deletions.yml 5 additions, 0 deletionschangelogs/unreleased/unlink-cache-deletions.yml
- lib/gitlab/repository_cache_adapter.rb 1 addition, 1 deletionlib/gitlab/repository_cache_adapter.rb
- lib/gitlab/set_cache.rb 10 additions, 2 deletionslib/gitlab/set_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_set_cache_spec.rb 32 additions, 3 deletionsspec/lib/gitlab/repository_set_cache_spec.rb
Please register or sign in to comment