mod_storage_appendmap/mod_storage_appendmap.lua
changeset 5694 ea6c18ec0669
parent 5065 e44b868cc575
child 5695 78f766372e2c
--- a/mod_storage_appendmap/mod_storage_appendmap.lua	Sun Nov 05 19:22:46 2023 +0100
+++ b/mod_storage_appendmap/mod_storage_appendmap.lua	Sun Nov 05 21:03:30 2023 +0100
@@ -97,6 +97,10 @@
 	return dm.append_raw(user, module.host, self.store, "map", data);
 end
 
+function map:items()
+	return dm.users(module.host, self.store, "map");
+end
+
 local keyval = { remove = REMOVE };
 local keyval_mt = { __index = keyval };
 
@@ -109,6 +113,10 @@
 	return dm.store_raw(dm.getpath(user, module.host, self.store, "map"), data);
 end
 
+function keyval:users()
+	return dm.users(module.host, self.store, "map");
+end
+
 -- TODO some kind of periodic compaction thing?
 function map:_compact(user)
 	local data = self:get(user);