diff --git a/sharded.go b/sharded.go index bcc0538..7df0943 100644 --- a/sharded.go +++ b/sharded.go @@ -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 }