Documentation
¶
Index ¶
- func New[M any](opt Options) cacher.Store[M]
- type Memcache
- func (m *Memcache[M]) Clear(ctx context.Context) error
- func (m *Memcache[M]) Delete(ctx context.Context, key string) error
- func (m *Memcache[M]) Get(ctx context.Context, key string) (M, error)
- func (m *Memcache[M]) GetHooks() []cacher.Hook
- func (m *Memcache[M]) MGet(ctx context.Context, keys ...string) ([]M, error)
- func (m *Memcache[M]) MSet(ctx context.Context, data ...cacher.Params[M]) error
- func (m *Memcache[M]) Set(ctx context.Context, key string, val M, opts ...cacher.StoreOptions) error
- func (m *Memcache[M]) SetOptions(opt cacher.StoreOptions)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.