Log

util/cache.lua @ 7290:70ab13e81cf5

description author age
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. Matthew Wild Thu, 17 Mar 2016 19:08:42 +0000
util.cache: Add head() and tail() methods (and tests) Matthew Wild Thu, 17 Mar 2016 19:07:40 +0000
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) Matthew Wild Tue, 22 Dec 2015 20:10:07 +0000