~iany/ Menu
  • Series
  • Tags
  1. Home
  2. Tags
  3. Redis

Redis

A collection of 1 article

Redis as Write Buffer

It is common to use Redis as read buffer。To read data, first check whether it exists in Redis. If so, use the cached data, otherwise read from the backend storage and save a copy into Redis. To write data, first save into backend storage, then clear or update Reids cache. But if the system bottleneck is in writing, the solution above does not work. But it is easy to modify it into a write buffer.

Updated Apr 15, 2022  •  2 min read

© 2025  •  ~iany/  •  CC-BY-SA 4.0

浙ICP备17004784号-1