Exemplo n.º 1
0
def testLRU():
    print ('######### LRU ########\n')
    lru = LRU(5)
    for i in range(8):
        lru.put(str(i), i)
        if i == 5:
            lru.get(str(i))
    lru.remove('3')
    lru.showNodes()