MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / Get

Method Get

internal/cache/cache.go:20–20  ·  view source on GitHub ↗

Get retrieves data from the cache, returning whether it was found

(key string, dest interface{})

Source from the content-addressed store, hash-verified

18type Cache interface {
19 // Get retrieves data from the cache, returning whether it was found
20 Get(key string, dest interface{}) (bool, error)
21
22 // Set stores data in the cache with optional TTL
23 Set(key string, data interface{}, ttl time.Duration) error

Callers 15

TestGetNodeDiskSmartFunction · 0.65
GetNoRetryMethod · 0.65
GetWithCacheMethod · 0.65
VersionMethod · 0.65
GetVmListMethod · 0.65

Implementers 2

FileCacheinternal/cache/cache.go
BadgerCacheinternal/cache/badger_cache.go

Calls

no outgoing calls