0
omar created
I trying to find the best way to implement cache per tenancy. As of right now, I am generating a cache key with the tenant id as follow.
var cacheKeyName = $"tenant-{tenantId}";
ICache tenantCache = _cacheManager.GetCache(cacheKeyName );
Inside tenantCache, I have all cached entities that only belong to that tenant. For example, the tenantCache has entities like Student, Class, Course, etc.
Is this a good approach to manage the cache for the application?
Thank You!
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
1 Answer(s)
-
0
Hi,
I couldn't think a better way right now, your solution seems very good :).
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)