LRU cache on top of shared preferences

Viewed 414

I would like to create an LRU cache that is backed by the shared preferences. Basically I would like to store a specific number of strings (around 20) and have an LRU behavior.
I know that LinkedHashMap is an LRU in java but is there a way to achieve what I want somehow backing up the LRU in the shared preferences in a clean way?

1 Answers
Related