Improves the performance of the Redis set cache
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
Showing
Please register or sign in to comment