Closed LRFalk01 closed 6 years ago
Region in Redis has some overhead as CM has to keep a lookup with all keys in the region. It will also have some limitations over time.
To just have a prefix on your keys, the easiest way is to do that on your side and just add a customer or "tenant" identifier on each key you store in the cache. String concatenation, that's the easiest thing ;)
If you can afford a Redis connection per customer, you can also use different Redis databases
Thanks for the response. What I have setup now is a wrapper around BaseCacheManager
My abstraction is working like a champ. Thanks for your help.
I'm looking for a way to automatically prefix all cached items. I'm in a situation where an application runs an instance per customer, but the redis cache would be a single server. It's a fairly clear use case for regions I think, however it would really be nice if we could somehow define a global region that is automatically applied to an app domain. Is this possible?