Versions in this module Expand all Collapse all v0 v0.0.2 Mar 15, 2026 v0.0.1 Mar 14, 2026 Changes in this version + const CleanupIntervalDefault + const CleanupIntervalFieldName + const ExpirationDefault + const ExpirationFieldName + var Component = &component.Component + func NewCache(config *Config, informer logger.Informer) *goCache.Cache + type Cache interface + Add func(k string, x interface{}, d time.Duration) error + Decrement func(k string, n int64) error + DecrementFloat func(k string, n float64) error + DecrementFloat32 func(k string, n float32) (float32, error) + DecrementFloat64 func(k string, n float64) (float64, error) + DecrementInt func(k string, n int) (int, error) + DecrementInt16 func(k string, n int16) (int16, error) + DecrementInt32 func(k string, n int32) (int32, error) + DecrementInt64 func(k string, n int64) (int64, error) + DecrementInt8 func(k string, n int8) (int8, error) + DecrementUint func(k string, n uint) (uint, error) + DecrementUint16 func(k string, n uint16) (uint16, error) + DecrementUint32 func(k string, n uint32) (uint32, error) + DecrementUint64 func(k string, n uint64) (uint64, error) + DecrementUint8 func(k string, n uint8) (uint8, error) + DecrementUintptr func(k string, n uintptr) (uintptr, error) + Delete func(k string) + DeleteExpired func() + Flush func() + Get func(k string) (interface{}, bool) + GetWithExpiration func(k string) (interface{}, time.Time, bool) + Increment func(k string, n int64) error + IncrementFloat func(k string, n float64) error + IncrementFloat32 func(k string, n float32) (float32, error) + IncrementFloat64 func(k string, n float64) (float64, error) + IncrementInt func(k string, n int) (int, error) + IncrementInt16 func(k string, n int16) (int16, error) + IncrementInt32 func(k string, n int32) (int32, error) + IncrementInt64 func(k string, n int64) (int64, error) + IncrementInt8 func(k string, n int8) (int8, error) + IncrementUint func(k string, n uint) (uint, error) + IncrementUint16 func(k string, n uint16) (uint16, error) + IncrementUint32 func(k string, n uint32) (uint32, error) + IncrementUint64 func(k string, n uint64) (uint64, error) + IncrementUint8 func(k string, n uint8) (uint8, error) + IncrementUintptr func(k string, n uintptr) (uintptr, error) + ItemCount func() int + Items func() map[string]goCache.Item + Load func(r io.Reader) error + LoadFile func(fname string) error + OnEvicted func(f func(string, interface{})) + Replace func(k string, x interface{}, d time.Duration) error + Save func(w io.Writer) (err error) + SaveFile func(fname string) error + Set func(k string, x interface{}, d time.Duration) + SetDefault func(k string, x interface{}) + type Config struct + CleanupInterval time.Duration + Expiration time.Duration + func Configuration(config *Config, configurator configurator.Configurator) *Config + func NewConfig() *Config