Versions in this module Expand all Collapse all v1 v1.0.5 Jul 7, 2026 Changes in this version + const DEFAULT_GENERATION_KEY_PREFIX + const KEY_DELIMITER + func GetGen(ctx context.Context, group string) (int64, error) + func GetGenerationFromCache(ctx context.Context, c generationalInterface, group string) (int64, error) + func GetItemFromCache[T1, T2 any](ctx context.Context, c cache.TypedCache[T1], ttl time.Duration, gen int64, ...) (result T2, err error) + func GetItem[T any](ctx context.Context, ttl time.Duration, gen int64, group string, key []string, ...) (result T, err error) + type GenerationKey = string + type KeyGenerator = func(...string) GenerationKey + func GenerationKeyFromCache(ctx context.Context, c generationalInterface, group string) (KeyGenerator, error) + func GetKey(ctx context.Context, group string, key ...string) (KeyGenerator, error) + func RollOver(ctx context.Context, group string, ttl time.Duration) (KeyGenerator, error) + func RollOverFromCache(ctx context.Context, c generationalInterface, group string, ttl time.Duration) (KeyGenerator, error) v1.0.4 Jul 4, 2026