Versions in this module Expand all Collapse all v0 v0.24.2 Aug 29, 2023 v0.24.1 Dec 14, 2022 Changes in this version + var TTLNoPropagation = TTL + var TTLUnlimitedPropagation = TTL + func DecodeEach(bytes []byte, fn func(key Key, val string, md metadatas)) error + func Do(ctx context.Context, f func(ctx context.Context)) + func Encode(m *Map) []byte + func New(ctx context.Context, mutator ...Mutator) (context.Context, error) + func NewContext(ctx context.Context, m *Map) context.Context + type Key struct + func MustNewKey(name string) Key + func NewKey(name string) (Key, error) + func (k Key) Name() string + type Map struct + func Decode(bytes []byte) (*Map, error) + func FromContext(ctx context.Context) *Map + func (m *Map) String() string + func (m *Map) Value(k Key) (string, bool) + type Metadata func(*metadatas) + func WithTTL(ttl TTL) Metadata + type Mutator interface + Mutate func(t *Map) (*Map, error) + func Delete(k Key) Mutator + func Insert(k Key, v string, mds ...Metadata) Mutator + func Update(k Key, v string, mds ...Metadata) Mutator + func Upsert(k Key, v string, mds ...Metadata) Mutator + type TTL struct + type Tag struct + Key Key + Value string