equal
deleted
inserted
replaced
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); |