Versions in this module Expand all Collapse all v2 v2.0.0 Sep 7, 2025 Changes in this version + var ErrKeyExists = errors.New("key already exists") + func Clear() + func Close() + func Exist(key string) bool + func Get[T any](key string) (T, bool) + func New(conf ...Config) error + func Put[T any](key string, value T, ttl time.Duration) + func Remove(key string) bool + func Set[T any](key string, value T, ttl time.Duration) error + type Cago struct + type Config struct + CleanInterval time.Duration + Timezone Timezone + type Entry struct + CreatedAt int64 + ExpiresAt int64 + Key string + UpdatedAt int64 + Value any + type Timezone string + const TimezoneAuckland + const TimezoneBangkok + const TimezoneBerlin + const TimezoneChicago + const TimezoneDubai + const TimezoneHonolulu + const TimezoneLocal + const TimezoneLondon + const TimezoneLosAngeles + const TimezoneMexicoCity + const TimezoneMoscow + const TimezoneNewYork + const TimezoneParis + const TimezoneSaoPaulo + const TimezoneShanghai + const TimezoneSingapore + const TimezoneSydney + const TimezoneTokyo + const TimezoneUTC + const TimezoneWIB + const TimezoneWIT + const TimezoneWITA Other modules containing this package github.com/jasakode/cago