Replies: 3 comments 4 replies
-
You're absolutely right. It's not intended to be used in production (maybe consider MokaStore instead) and is really only meant for testing. |
Beta Was this translation helpful? Give feedback.
-
Another thought here: we could use dashmap instead. The API diverges from HashMap a bit, but it's close to a drop-in replacement. Or maybe we should alias MemoryStore to MokaStore (it's not exactly one-to-one because MokaStore is bounded to a fixed number of total LRU entries). Anyway I'm happy to make changes and I would also like to make sure that folks aren't reaching for this in production settings unless they're sure it's the right tool for their needs. |
Beta Was this translation helpful? Give feedback.
-
I think we can mark this as resolved, but please let us know if you have additional questions. |
Beta Was this translation helpful? Give feedback.
-
I was glancing through the codebase and saw that the
MemoryStore
is really just aArc<Mutex<HashMap<K, V>>>
. As I'm using theMemoryStore
in production (logging out all users on restarting the server is not a big deal) I was on the other hand a bit worried about the fact that all user sessions can only be accessed one at a time.Beta Was this translation helpful? Give feedback.
All reactions