Skip to content
Snippets Groups Projects

Swap to UNLINK for Redis set cache

Merged Robert May requested to merge unlink-cache-deletions into master
All threads resolved!
5 files
+ 49
8
Compare changes
  • Side-by-side
  • Inline
Files
5
  • bae909b4
    Swap to UNLINK for Redis set cache · bae909b4
    Robert May authored
    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.
---
title: Swap to UNLINK for Redis set cache
merge_request: 27116
author:
type: performance
Loading