From 46b8afa62b4b3cc18e0f697239da3831e7940e07 Mon Sep 17 00:00:00 2001 From: parMaster Date: Thu, 13 Jul 2023 13:51:30 +0300 Subject: [PATCH] Basic example, cleanup goroutine example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 46da138..85f47f7 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ cache := mcache.NewCache() data, err := cache.Get("key") if err != nil { data = ExpensiveFunctionCall() - cache.Set(key, data, 5*60) // cache data for 5 minutes + cache.Set("key", data, 5*60) // cache data for 5 minutes } ```