check locally with exporting and using shraded cache
This commit is contained in:
parent
1881a9bccb
commit
26fb4f1043
|
@ -178,7 +178,7 @@ func newShardedCache(n int, de time.Duration) *shardedCache {
|
|||
return sc
|
||||
}
|
||||
|
||||
func unexportedNewSharded(defaultExpiration, cleanupInterval time.Duration, shards int) *unexportedShardedCache {
|
||||
func NewSharded(defaultExpiration, cleanupInterval time.Duration, shards int) *unexportedShardedCache {
|
||||
if defaultExpiration == 0 {
|
||||
defaultExpiration = -1
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue