Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (18 sloc) 335 Bytes
package lru_cache
import (
type LRUCache interface {
// Get returns value for `key`. Returns -1 if not found
Get(key int) int
// Put sets value with key
Put(key, value int)
type Dumper interface {
// Dump writes internal data of LRUCache to `w`.
Dump(w io.Writer) error
type item struct {
value int
age int
You can’t perform that action at this time.