Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f70f8d94db |
@@ -11,7 +11,7 @@ import (
|
|||||||
|
|
||||||
func Memory(cli *bigcache.BigCache, opts *bigcache.Config) {
|
func Memory(cli *bigcache.BigCache, opts *bigcache.Config) {
|
||||||
if opts == nil {
|
if opts == nil {
|
||||||
opts = bigcache.Config{
|
opts = &bigcache.Config{
|
||||||
Shards: 1024,
|
Shards: 1024,
|
||||||
LifeWindow: 10 * time.Minute,
|
LifeWindow: 10 * time.Minute,
|
||||||
CleanWindow: 5 * time.Minute,
|
CleanWindow: 5 * time.Minute,
|
||||||
|
|||||||
Reference in New Issue
Block a user