init commit,
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export const readFrom = async (cache, path) => {
|
||||
const data = await cache.get(path);
|
||||
return JSON.parse(data);
|
||||
};
|
||||
|
||||
export const writeTo = async (cache, path, data) => {
|
||||
await cache.put(path, JSON.stringify(data));
|
||||
};
|
Reference in New Issue
Block a user