Base solution for your next web application
Open Closed

Cache per Tenant #1147


User avatar
0
david created

Hi all,

Nice job guys.

I was wondering what is the best way to implement cache per tenancy?

For example i have an entity that implements IMustHaveTenant.

i have a property named "name" which is unique for each tenant. I would like my appService getByName method, to return this entity from cache. However, if two tenants have an entry with same "name", cache returns the object of the first accessed.

What is the best practice to implement this functionality?


2 Answer(s)