LRU implementation with lua