Dave's Brain

Browse - Programming Tips - What's a good way to decide what to cache?

Date: 2016mar15
Keywords: frecent, freecent, frecency, recent, frequent

Q.  What's a good way to decide what to cache?

A.  You can use frecency.

Frecency is any heuristic that combines the frequency and recency into a single measure.

The Facebook newsfeed probably uses frecency to decide what to show too.
- Newer thing are favoured (recent)
- Things with lots of views/likes do well (that's the frequent)

Add a comment

Sign in to add a comment
Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.