mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.cache: Add __name to metatable
This commit is contained in:
parent
1ab96f2289
commit
48521ba153
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ local function _insert(list, m)
|
|||
end
|
||||
|
||||
local cache_methods = {};
|
||||
local cache_mt = { __index = cache_methods };
|
||||
local cache_mt = { __name = "cache", __index = cache_methods };
|
||||
|
||||
function cache_methods:set(k, v)
|
||||
local m = self._data[k];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue