Skip to content

Instantly share code, notes, and snippets.

@justnoise
justnoise / lru_cache.py
Created September 7, 2013 00:27
Just a quick implementation of a LRU cache.
from pprint import pprint
class Node:
def __init__(self, key, value):
self.key = key
self.value = value
self.prev = None
self.next = None
def __str__(self):