Software /
code /
prosody
Diff
util/cache.lua @ 11198:c4c06fbb7d87
util.cache: Add __name to metatable
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 30 Oct 2020 14:05:07 +0000 |
parent | 8398:3eff1b60269a |
child | 13174:8ec7b7d6556f |
line wrap: on
line diff
--- a/util/cache.lua Fri Oct 30 14:04:40 2020 +0000 +++ b/util/cache.lua Fri Oct 30 14:05:07 2020 +0000 @@ -28,7 +28,7 @@ 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];