Skip to content

Commit 0ed47d0

Browse files
committed
fixed README
1 parent ff26872 commit 0ed47d0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ go-generics-cache is an in-memory key:value store/cache that is suitable for app
1010
- Simple cache is like `map[string]interface{}`
1111
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/simple/example_test.go)
1212
- Cache replacement policies
13-
- Least recently used (LRU)
13+
- **Least recently used (LRU)**
1414
- Discards the least recently used items first.
1515
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/lru/example_test.go)
16-
- Least-frequently used (LFU)
16+
- **Least-frequently used (LFU)**
1717
- Counts how often an item is needed. Those that are used least often are discarded first.
1818
- [An O(1) algorithm for implementing the LFU cache eviction scheme](http://dhruvbird.com/lfu.pdf)
1919
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/lfu/example_test.go)
20-
- First in first out (FIFO)
20+
- **First in first out (FIFO)**
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)
24+
- **Most recently used (MRU)**
2525
- In contrast to Least Recently Used (LRU), MRU discards the most recently used items first.
2626
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/mru/example_test.go)
2727

@@ -44,7 +44,7 @@ go version devel go1.18-c2397905e0 Sat Nov 13 03:33:55 2021 +0000 darwin/arm64
4444

4545
## Usage
4646

47-
See also [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/example_test.go)
47+
See also [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/example_test.go) or [gotipplay playground](https://gotipplay.golang.org/p/MRF_I4oUS_W)
4848

4949
```go
5050
package main

0 commit comments

Comments
 (0)