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