Consideration design on redis
- What data should be fetched
- Data structure
- Often accessed and common data among users
This is common strategy when choosing cache data. - Not often changed data
If you chosen cache data which is often changed data (especially for personalized data), in-memory space should be reduced very quickly. \
Example
Suppose you have to select which web page should be cached using redis.
You are administrator and owner of web site.
Static web page is better choice.
These are the reason.
- Often accessed data
- Smaller size data
- Data not changed easily
- Not related business logic