Skip to content

Instantly share code, notes, and snippets.

@gmichelo
gmichelo / LRUCache.go
Last active August 15, 2020 22:00
Prototype of a LRU Cache for string key/value pairs in Go.
package main
import (
"fmt"
)
// LRUCache is the LRU string cache.
type LRUCache struct {
table map[string]entry
queue lruQueue