Skip to content

revsys/lfu-redis-example

Repository files navigation

LRU vs LFU Redis Demo

Everyone defaults to LRU caching, but when bots create 500,000 sessions per hour, LFU is your best friend.

Frank wrote up a detailed description of why you should consider using an LFU cache for user sessions.

Quick Video Explanation

LFU is better than LRU for storing browser sessions

Which cache algorithm is right for you?

Image with LFU on one side and LRU on the other

About

Redis LFI (Least Frequently Used) Demo / Example

Resources

License

Stars

Watchers

Forks

Languages