Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Sep 18, 2020
1 parent b6d05a5 commit c2f2fad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c2f2fad

Please sign in to comment.