Versions in this module Expand all Collapse all v0 v0.0.4 Jul 9, 2022 Changes in this version + type Helper struct + func (h *Helper[T]) GetOrSet(ctx context.Context, key any, fn func(ctx context.Context) (T, error), ...) (v T, err error, set bool) + type Option func(*option) + func WithGroup(g ...*singleflight.Group) Option + func WithStoreOption(opt ...store.Option) Option + type ProtoCache struct + func NewProtoCache(creator func() T, proxy cache.CacheInterface[string]) *ProtoCache[T] + func (c *ProtoCache[T]) Clear(ctx context.Context) error + func (c *ProtoCache[T]) Delete(ctx context.Context, key any) error + func (c *ProtoCache[T]) Get(ctx context.Context, key any) (T, error) + func (c *ProtoCache[T]) GetType() string + func (c *ProtoCache[T]) Invalidate(ctx context.Context, options ...store.InvalidateOption) error + func (c *ProtoCache[T]) Set(ctx context.Context, key any, object T, options ...store.Option) error