Skip to content

Commit

Permalink
doc: fix bigcache with wrong value type
Browse files Browse the repository at this point in the history
  • Loading branch information
yeqown committed Jun 23, 2020
1 parent a10e467 commit e3e61d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -71,7 +71,7 @@ bigcacheClient, _ := bigcache.NewBigCache(bigcache.DefaultConfig(5 * time.Minute
bigcacheStore := store.NewBigcache(bigcacheClient, nil) // No otions provided (as second argument)

cacheManager := cache.New(bigcacheStore)
err := cacheManager.Set("my-key", "my-value", nil)
err := cacheManager.Set("my-key", []byte("my-value"), nil)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit e3e61d7

Please sign in to comment.