adding readmes

This commit is contained in:
cubixle
2024-02-19 17:39:39 +00:00
parent 7d1333989e
commit f18c042fde
3 changed files with 18 additions and 24 deletions
+14
View File
@@ -0,0 +1,14 @@
# LRU Cache
This is a simple implementation of a Least Recently Used (LRU) Cache in Go.
An LRU Cache will evict the oldest used key whenever the cache gets full.
Example usage
```go
capacity := 100
cache := lru.NewCache(capacity)
cache.Set("im a key", "im a value")
val := cache.Get("im a key")
println(val)
```