Ghost
Ghost copied to clipboard
Used a key prefix to enable immediate cache resets
Rather than trying to clear all of the data in Redis, we can use a key prefix to simulate a cache clear, after changing the prefix, any reads from the cache will now MISS and we can rely on the TTL and eviction policy of Redis to clear stale data.