1 -- luacheck: ignore 212
4 local driver_mt
= { __index
= driver
};
6 function driver
:open(store
, typ
)
7 if typ
and typ
~= "keyval" and typ
~= "archive" then
8 return nil, "unsupported-store";
10 return setmetatable({ store
= store
, type = typ
}, driver_mt
);
12 function driver
:get(user
)
16 function driver
:set(user
, data
)
17 return nil, "Storage disabled";
20 function driver
:stores(username
)
24 function driver
:purge(user
)
28 function driver
:append()
29 return nil, "Storage disabled";
32 function driver
:find()
33 return function () end, 0;
36 function driver
:delete()
40 module
:provides("storage", driver
);