Log

tests/test_util_cache.lua @ 7374:3e8851b7c6e8

description author age
tests: util.cache: Tests for different return values of on_evict Matthew Wild 2016-03-17
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 2016-03-17
util.cache: Add head() and tail() methods (and tests) Matthew Wild 2016-03-17
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 2015-12-22
tests: Add tests for util.cache Matthew Wild 2015-11-26