sm
/
cache
1
0
Fork 0

check locally with exporting and using shraded cache

This commit is contained in:
Pranjal Pandit 2016-08-29 22:42:41 +05:30
parent 1881a9bccb
commit 26fb4f1043
1 changed files with 1 additions and 1 deletions

View File

@ -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
}