Comparison

spec/util_array_spec.lua @ 13175:bbdaa770b955

util.cache: Pass cache itself to eviction callback Simplifies access to the cache without moving code around a lot given the currently common pattern of local some_cache = cache.new(size, function(k,v) end)
author Kim Alvefur <zash@zash.se>
date Fri, 30 Jun 2023 22:01:55 +0200
parent 11787:3ae6fa901a8b
child 13245:ffe4adbd2af9
comparison
equal deleted inserted replaced
13174:8ec7b7d6556f 13175:bbdaa770b955