Comparison

util/cache.lua @ 7704:5022e6181193

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Tue, 18 Oct 2016 19:07:55 +0200
parent 7702:9385c367e920
child 8396:fbe1f99fb245
comparison
equal deleted inserted replaced
7697:bd854e762875 7704:5022e6181193
115 if not tail then return nil, nil; end 115 if not tail then return nil, nil; end
116 return tail.key, tail.value; 116 return tail.key, tail.value;
117 end 117 end
118 118
119 function cache_methods:table() 119 function cache_methods:table()
120 --luacheck: ignore 212/t
120 if not self.proxy_table then 121 if not self.proxy_table then
121 self.proxy_table = setmetatable({}, { 122 self.proxy_table = setmetatable({}, {
122 __index = function (t, k) 123 __index = function (t, k)
123 return self:get(k); 124 return self:get(k);
124 end; 125 end;