util.cache: Add __name to metatable
authorMatthew Wild <mwild1@gmail.com>
Fri, 30 Oct 2020 14:05:07 +0000
changeset 11202 c4c06fbb7d87
parent 11201 50f182931bdd
child 11204 bf8f2da84007
util.cache: Add __name to metatable
util/cache.lua
--- 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];