diff --git a/with/memory.go b/with/memory.go index 85ce176..2236fc7 100644 --- a/with/memory.go +++ b/with/memory.go @@ -11,7 +11,7 @@ import ( func Memory(cli *bigcache.BigCache, opts *bigcache.Config) { if opts == nil { - opts = bigcache.Config{ + opts = &bigcache.Config{ Shards: 1024, LifeWindow: 10 * time.Minute, CleanWindow: 5 * time.Minute,