Skip to content

Commit ff26872

Browse files
committed
fixed README for adding MRU cache replacement policies
1 parent b559c9f commit ff26872

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ go-generics-cache is an in-memory key:value store/cache that is suitable for app
2121
- Using this algorithm the cache behaves in the same way as a [FIFO queue](https://en.wikipedia.org/wiki/FIFO_(computing_and_electronics)).
2222
- The cache evicts the blocks in the order they were added, without any regard to how often or how many times they were accessed before.
2323
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/fifo/example_test.go)
24+
- Most recently used (MRU)
25+
- In contrast to Least Recently Used (LRU), MRU discards the most recently used items first.
26+
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/mru/example_test.go)
2427

2528
## Requirements
2629

0 commit comments

Comments
 (0)