MCPcopy Create free account
hub / github.com/patrickmn/go-cache / TestShardedCache

Function TestShardedCache

sharded_test.go:29–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

27}
28
29func TestShardedCache(t *testing.T) {
30 tc := unexportedNewSharded(DefaultExpiration, 0, 13)
31 for _, v := range shardedKeys {
32 tc.Set(v, "value", DefaultExpiration)
33 }
34}
35
36func BenchmarkShardedCacheGetExpiring(b *testing.B) {
37 benchmarkShardedCacheGet(b, 5*time.Minute)

Callers

nothing calls this directly

Calls 2

unexportedNewShardedFunction · 0.85
SetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…