From c2f2fadefe3b50e8930ec763e64a5d91992f10d2 Mon Sep 17 00:00:00 2001 From: Danilo Pantani Date: Fri, 18 Sep 2020 01:59:40 -0300 Subject: [PATCH] update readme --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5960446..431066c 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,10 @@ err := s.GetObject("key", &result) - Add value ```go data := CustomObject{Name: "name", Id: "id"} -err := s.AddObject("key", data) +err := s.AddObject("key", data, 0) + +// with expiration time +err := s.AddObject("key", data, 10 * time.Second) ``` - Delete value: