mod_storage_appendmap/mod_storage_appendmap.lua
changeset 5065 e44b868cc575
parent 2800 6a7b7cb7148e
child 5694 ea6c18ec0669
equal deleted inserted replaced
5064:bc491065c221 5065:e44b868cc575
   104 	return map.get(self, user, nil);
   104 	return map.get(self, user, nil);
   105 end
   105 end
   106 
   106 
   107 function keyval:set(user, keyvalues)
   107 function keyval:set(user, keyvalues)
   108 	local data = serialize_map(keyvalues);
   108 	local data = serialize_map(keyvalues);
   109 	return dm.store_raw(user, module.host, self.store, "map", data);
   109 	return dm.store_raw(dm.getpath(user, module.host, self.store, "map"), data);
   110 end
   110 end
   111 
   111 
   112 -- TODO some kind of periodic compaction thing?
   112 -- TODO some kind of periodic compaction thing?
   113 function map:_compact(user)
   113 function map:_compact(user)
   114 	local data = self:get(user);
   114 	local data = self:get(user);