Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartDefaultGC ¶
StartDefaultGC starts a background goroutine that periodically calls CleanupExpired() on the default SharedStore. It runs once per process.
Types ¶
type SharedStore ¶
type SharedStore interface {
}
SharedStore is a simple namespaced key-value store with TTL support.
func NewFileStore ¶
func NewFileStore(root string) SharedStore
NewFileStore creates a directory-backed SharedStore.
func NewMemoryStore ¶
func NewMemoryStore() SharedStore
NewMemoryStore creates an in-memory SharedStore.
Click to show internal directories.
Click to hide internal directories.