Versions in this module Expand all Collapse all v0 v0.6.0 Oct 14, 2026 v0.5.0 Oct 12, 2026 Changes in this version + func Compress(body []byte) ([]byte, error) + func Decompress(c []byte) ([]byte, error) + func Key(api, connection, endpoint, tenant, sql string, args []dialect.Arg, ...) string + type Group struct + func (g *Group[T]) Do(key string, fn func() (T, error)) (T, error) + type KV interface + Get func(ctx context.Context, key string) ([]byte, bool, error) + MGet func(ctx context.Context, keys ...string) ([][]byte, error) + Set func(ctx context.Context, key string, value []byte, ttl time.Duration) error + type Store struct + func New(kv KV, ttl time.Duration, maxEntry int) *Store + func (s *Store) Generations(ctx context.Context, models []string) ([]string, error) + func (s *Store) Get(ctx context.Context, key string) ([]byte, bool, error) + func (s *Store) Put(ctx context.Context, key string, body []byte) (bool, error)