util.cache: Change behaviour of on_evict (and tests). Now accepts false instead of...
authorMatthew Wild <mwild1@gmail.com>
Thu, 17 Mar 2016 19:08:42 +0000 (19:08 +0000)
committerMatthew Wild <mwild1@gmail.com>
Thu, 17 Mar 2016 19:08:42 +0000 (19:08 +0000)
commit1d1f10b4fe217b89ff79edf8a7c82c47ecdf64a5
tree239d5a5e45b2f8f24afb977112938da848fb9589
parent969d159bd712c8d974f5122492a9615e66c0be9c
util.cache: Change behaviour of on_evict (and tests). Now accepts false instead of a function (never evict), or on_evict can return false to prevent eviction.
tests/test_util_cache.lua
util/cache.lua