lua-users home
lua-l archive

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


Hello,

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 :)

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/