lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


What would be decent way to implement a LRU table in Lua?

For example, in Java, I would use a LinkedHashMap which keeps track of access order and invoke removeEldestEntry() when appropriate. Does anyone has something equivalent in Lua?

Thanks for any pointers :)


PA, Onnay Equitursay