forked from parse-community/parse-server
-
Notifications
You must be signed in to change notification settings - Fork 0
cache.js
Fosco Marotto edited this page Jan 28, 2016
·
1 revision
Simple caching for the app and user sessions
// during a request
var user = cache.getUser(sessionToken);
if (!user) { ... }
// during login/signup
cache.setUser(sessionToken, userObject);
// during logout
cache.clearUser(sessionToken);
Also has an unused statistics object which could be used to implement in-memory analytics storage.