Log

util/cache.lua @ 7234:161f9f163e37

description author age
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
util.cache: Small update to prefix private fields with an underscore, add a :count() method (same as util.queue) and add an optional on_evict callback Matthew Wild 2015-11-26
util.cache: Make sure cache size is specified as an integer Kim Alvefur 2015-11-25
util.cache: Ordered key->value data structure, with size limit (same as pubsub) Matthew Wild 2015-11-24