From 26fb4f10432047e92f13ebf1e9718a0ffb2119a8 Mon Sep 17 00:00:00 2001 From: Pranjal Pandit Date: Mon, 29 Aug 2016 22:42:41 +0530 Subject: [PATCH] check locally with exporting and using shraded cache --- sharded.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }