© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
4y ago
•
20 replies
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
How to cache an object with multiple keys in C#
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
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
✅ Typically how is an image stored?
C
C# / help
2y ago
❔ Were is the data stored at in this project?
C
C# / help
3y ago
✅ Stored Procedure Help
C
C# / help
3y ago
❔ How to get azure cache for Redis connection string stored in app service as a appsetting variable
C
C# / help
3y ago