You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure how much memory it will be using, I am creating cache in my solution per user. what if my users increment from let's say 100 to 1000. can you suggest me something to do a test for memory usage?
can we do the time thing if it's not accessed for x amount delete that key and value?
The text was updated successfully, but these errors were encountered:
I am not sure how much memory it will be using, I am creating cache in my solution per user. what if my users increment from let's say 100 to 1000. can you suggest me something to do a test for memory usage?
can we do the time thing if it's not accessed for x amount delete that key and value?
IMHO, a package like this should be used for the most performance critical areas (i.e. something that needs to be looked up on every request). If you start using this for per-user data cache then you are locking the user to a specific server because that's the only server that has that user's data in cache.
redis (ioredis package for the client) is a far better solution for the kinds of thing you mention here. Shared cache across all servers ensures you keep your service stateless and takes care of removing cached data after the TTL expires.
I have two concerns about this package.
I am not sure how much memory it will be using, I am creating cache in my solution per user. what if my users increment from let's say 100 to 1000. can you suggest me something to do a test for memory usage?
can we do the time thing if it's not accessed for x amount delete that key and value?
The text was updated successfully, but these errors were encountered: