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

Method Set

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

Set stores data in the cache with optional TTL

(key string, data interface{}, ttl time.Duration)

Source from the content-addressed store, hash-verified

21
22 // Set stores data in the cache with optional TTL
23 Set(key string, data interface{}, ttl time.Duration) error
24
25 // Delete removes an item from the cache
26 Delete(key string) error

Implementers 2

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

Calls

no outgoing calls