MCPcopy Create free account
hub / github.com/koding/kite / NewCachedStorage

Function NewCachedStorage

kontrol/keypair.go:150–155  ·  view source on GitHub ↗

NewCachedStorage creates a new CachedStorage

(backend KeyPairStorage, cache KeyPairStorage)

Source from the content-addressed store, hash-verified

148
149// NewCachedStorage creates a new CachedStorage
150func NewCachedStorage(backend KeyPairStorage, cache KeyPairStorage) *CachedStorage {
151 return &CachedStorage{
152 cache: cache,
153 backend: backend,
154 }
155}
156
157var _ KeyPairStorage = (&CachedStorage{})
158

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected