Simple local in-memory cache for Nim.
import memory_cache
import times
import options
var cache: MemoryCache[string, string]
let value = cache.getOrCreate("key", proc (options: var CacheOptions): string = "Hello, world!")
echo value # Hello, world!
echo cache.get("key") # Some("Hello, world!")
echo cache.get("wrong_key") # None[string]