Documentation
¶
Overview ¶
Package memory provides a bounded, concurrency-safe LRU cache backend.
Index ¶
- type Backend
- func (b *Backend) Close() error
- func (b *Backend) Delete(ctx context.Context, key string) (bool, error)
- func (b *Backend) Get(ctx context.Context, key string) (cache.Record, bool, error)
- func (b *Backend) Set(ctx context.Context, key string, record cache.Record, ...) (bool, error)
- func (b *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 is a bounded concurrency-safe LRU backend.
Click to show internal directories.
Click to hide internal directories.