Documentation
¶
Overview ¶
Package memory is the legacy bounded, concurrency-safe LRU cache backend.
Deprecated: use github.com/faustbrian/go-cache/v2/adapters/memory. This package remains supported for the longer of 180 days after successor availability and two subsequently published stable root-module minor releases.
Index ¶
- type Backend
- func (backend *Backend) Close() error
- func (backend *Backend) Delete(ctx context.Context, key string) (bool, error)
- func (backend *Backend) Get(ctx context.Context, key string) (cache.Record, bool, error)
- func (backend *Backend) Set(ctx context.Context, key string, record cache.Record, ...) (bool, error)
- func (backend *Backend) Stats() Stats
- type Config
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend preserves the legacy memory adapter type identity.
Click to show internal directories.
Click to hide internal directories.