Dmitriy Gnatenko 1b9d3a6ed8 Add LRU memory cache | 6 bulan lalu | |
---|---|---|
.. | ||
cache.go | 6 bulan lalu | |
readme.md | 6 bulan lalu |
cache := NewCache()
cache.Set("1", "value 1")
val1, found1 := cache.Get("1") // "value 1", true
val2, found2 := cache.Get("2") // nil, false