Skip to content

Commit 76570d8

Browse files
committed
fixed link
1 parent 8b39277 commit 76570d8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ go-generics-cache is an in-memory key:value store/cache that is suitable for app
88
- implemented with [Go Generics](https://go.dev/blog/generics-proposal)
99
- TTL supported (with expiration times)
1010
- Simple cache is like `map[string]interface{}`
11-
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/simple/example_test.go)
11+
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/policy/simple/example_test.go)
1212
- Cache replacement policies
1313
- **Least recently used (LRU)**
1414
- Discards the least recently used items first.
15-
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/lru/example_test.go)
15+
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/policy/lru/example_test.go)
1616
- **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)
19-
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/lfu/example_test.go)
19+
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/policy/lfu/example_test.go)
2020
- **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.
23-
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/fifo/example_test.go)
23+
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/policy/fifo/example_test.go)
2424
- **Most recently used (MRU)**
2525
- 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)
26+
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/policy/mru/example_test.go)
2727
- **Clock**
2828
- Clock is a more efficient version of FIFO than Second-chance cache algorithm.
29-
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/clock/example_test.go)
29+
- See [examples](https://github.com/Code-Hex/go-generics-cache/blob/main/policy/clock/example_test.go)
3030

3131
## Requirements
3232

0 commit comments

Comments
 (0)