Closed tinovyatkin closed 7 years ago
Also, in Redis store example I'm using SET EX
to automatically drop expired sessions
Also removed async
in default store methods, as they are all sync actually. You can await
for sync function value, so, not a problem with overring it to async get
or async set
That is great! Thank you so much! 👍
You basically simulating native javascript Map object via keys of object - that's bad, it's
node 7x
already, let's use native MapRe-export
Store
from main file to avoid referencing internal project files when extendingStore
.You actually don't need encode & decode session data for in-memory storage, so, dropped it. When extending Store developer must do store specific value sanitation anyway.