readme md

main v6.0.0
serr 2025-01-06 15:00:54 +03:00
parent bfbf496836
commit 67278d8e46
1 changed files with 7 additions and 7 deletions

View File

@ -215,13 +215,13 @@ if err := cache.Save(&buffer); err != nil { // Сохранение бэкапа
log.Fatal("error saving cache: ", err) log.Fatal("error saving cache: ", err)
} }
cache.Set("key1", "lost", 10*time.Minute) cache.Set("key1", "lost", -1)
cache.Set("key2", "lost", 10*time.Minute) cache.Set("key2", "lost", -1)
cache.Set("key3", "lost", 10*time.Minute) cache.Set("key3", "lost", -1)
cache.Set("key4", "lost", 10*time.Minute) cache.Set("key4", "lost", -1)
cache.Set("key5", "lost", 10*time.Minute) cache.Set("key5", "lost", -1)
cache.Set("key6", "lost", 10*time.Minute) cache.Set("key6", "lost", -1)
cache.Set("key7", "lost", 10*time.Minute) cache.Set("key7", "lost", -1)
if err := cache.Load(&buffer); err != nil { // Восстановление бэкапа if err := cache.Load(&buffer); err != nil { // Восстановление бэкапа
log.Fatal("error loading cache: ", err) log.Fatal("error loading cache: ", err)