openresty/lua-resty-lrucache — pull request #3 by yangshuxin (2014-06-17 23:40:51+00:00)
Title: In lua, "hashtab[key] = nil" does not physically delete the entry associ...

...ated with the key.

So, if key keeps changing, the table size keeps changing as well, which leads to horrible
performance.

This change implements a hash-tab to render it possible to erase a entry immeidately if
it is becoming dead. The hash function is using CRC32, which seems to be working quite
well.