Cache library on pure go
cache := cache.New[string, string]()
cache.Set("key","value")
value, found := cache.Get("key")
fmt.Println(value, found) //value true
cache.Delete("key")
cache := cache.New[string, string]()
cache.SetWithTTL("key","value", time.Minute)
value, found := cache.Get("key")
fmt.Println(value, found) //value true
cache.Delete("key")
cache := cache.NewWithTTL[string, string](time.Minute)
cache.Set("key","value")
value, found := cache.Get("key")
fmt.Println(value, found) //value true
cache.Delete("key")