util.cache (and tests): Call on_evict after insertion of the new key, so inside on_ev...
authorMatthew Wild <mwild1@gmail.com>
Tue, 22 Dec 2015 20:10:07 +0000 (20:10 +0000)
committerMatthew Wild <mwild1@gmail.com>
Tue, 22 Dec 2015 20:10:07 +0000 (20:10 +0000)
commitb52fbcbe8c79cf7f5e3a7ea25850e9f41f3661f3
tree9e3a22ec78e8c40fa17cece387a0aa82d43b5a84
parent4a1c84c361e42ab8b1530e3e7427bf78d2384a2b
util.cache (and tests): Call on_evict after insertion of the new key, so inside on_evict we can be more certain about the current state of the cache (i.e. full, new item added, old item removed)
tests/test_util_cache.lua
util/cache.lua