• Andrew Newdigate's avatar
    Improves the performance of the Redis set cache · 389e6f58
    Andrew Newdigate authored
    Testing has shown that treating membership optimistically reduces the
    number of Redis calls substantially.
    
    `include?` will only perform an EXISTS if SISMEMBER returns negative.
    
    `fetch` will only perform an EXISTS if there are no values.
    
    `read` uses SSCAN to avoid Redis lockup on huge sets
    389e6f58
repository_cache_adapter.rb 8.93 KB