Documentation ¶ Index ¶ type LRU func New(maxBytes int) *LRU func (l *LRU) Get(ctx context.Context, key string) ([]byte, error) func (l *LRU) Len() int func (l *LRU) Range(fn func(key string, val []byte) bool) func (l *LRU) Set(ctx context.Context, key string, val []byte) error func (l *LRU) Size() int Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type LRU ¶ type LRU struct { // contains filtered or unexported fields } func New ¶ func New(maxBytes int) *LRU func (*LRU) Get ¶ func (l *LRU) Get(ctx context.Context, key string) ([]byte, error) func (*LRU) Len ¶ func (l *LRU) Len() int func (*LRU) Range ¶ func (l *LRU) Range(fn func(key string, val []byte) bool) func (*LRU) Set ¶ func (l *LRU) Set(ctx context.Context, key string, val []byte) error func (*LRU) Size ¶ func (l *LRU) Size() int Source Files ¶ View all Source files lru.go Click to show internal directories. Click to hide internal directories.