Why not use both? For example, store your session info in redis, but have it refer to user data which is in the DB. This effectively turns it into a cache to make short-lived data cheaper.
Why not use both? For example, store your session info in redis, but have it refer to user data which is in the DB. This effectively turns it into a cache to make short-lived data cheaper.