C#C
C#4y ago
Alerin

How the cache is stored

Hi, what kind of cache library do you use?
How to solve the problem of multiple keys?
Here is a similar problem:
https://stackoverflow.com/questions/59103206/how-to-cache-an-object-with-multiple-keys-in-c-sharp
The solution is interesting, but it makes the cache constant and can overflow (no expiry date of the item)
Stack Overflow
I have models that are unique in 2 or more properties. For example, objects of the class Entity are unique both by name and by ID.

public class Entity
{
public int Id { get; set; }
public
Was this page helpful?