From 67278d8e46da09fae25cf01a618ef2784d6ea3f6 Mon Sep 17 00:00:00 2001 From: serr Date: Mon, 6 Jan 2025 15:00:54 +0300 Subject: [PATCH] readme md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4700e7e..b0bfd3d 100644 --- a/README.md +++ b/README.md @@ -215,13 +215,13 @@ if err := cache.Save(&buffer); err != nil { // Сохранение бэкапа log.Fatal("error saving cache: ", err) } -cache.Set("key1", "lost", 10*time.Minute) -cache.Set("key2", "lost", 10*time.Minute) -cache.Set("key3", "lost", 10*time.Minute) -cache.Set("key4", "lost", 10*time.Minute) -cache.Set("key5", "lost", 10*time.Minute) -cache.Set("key6", "lost", 10*time.Minute) -cache.Set("key7", "lost", 10*time.Minute) +cache.Set("key1", "lost", -1) +cache.Set("key2", "lost", -1) +cache.Set("key3", "lost", -1) +cache.Set("key4", "lost", -1) +cache.Set("key5", "lost", -1) +cache.Set("key6", "lost", -1) +cache.Set("key7", "lost", -1) if err := cache.Load(&buffer); err != nil { // Восстановление бэкапа log.Fatal("error loading cache: ", err)