Skip to content

Commit

Permalink
Basic example, cleanup goroutine example
Browse files Browse the repository at this point in the history
  • Loading branch information
parMaster committed Jul 13, 2023
1 parent 2a222ca commit 46b8afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```

Expand Down

0 comments on commit 46b8afa

Please sign in to comment.