Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LRUCache ¶
type LRUCache struct {
// contains filtered or unexported fields
}
func NewLRUCache ¶
type LRUListCache ¶
func NewLRUListCache ¶
func NewLRUListCache(capacity int) LRUListCache
func (*LRUListCache) Get ¶
func (c *LRUListCache) Get(key int) int
func (*LRUListCache) Put ¶
func (c *LRUListCache) Put(key int, value int)
Click to show internal directories.
Click to hide internal directories.