3 ms·
I would rather store the token in Redis, so that I can take advantage of its expiration functionality. Additionally, load is removed from the database and it pr
by cygned 9y ago
I would rather store the token in Redis, so that I can take advantage of its expiration functionality. Additionally, load is removed from the database and it provides faster lookups. I would, in addition, also cache the session data (e.g. the row from the user table) in Redis.
[edit: formulation]