zephyr-agent
Version:
Zephyr plugin agent
18 lines (17 loc) • 572 B
JavaScript
import "node:module";
import { getItem, removeItem, setItem, storage } from "./storage.mjs";
import { StorageKeys } from "./storage-keys.mjs";
async function saveCache(key, value) {
await storage;
await setItem(`${StorageKeys.ze_fs_cache}:${key}`, value);
}
async function getCache(key) {
await storage;
return getItem(`${StorageKeys.ze_fs_cache}:${key}`);
}
async function removeCache(key) {
await storage;
await removeItem(`${StorageKeys.ze_fs_cache}:${key}`);
}
export { getCache, removeCache, saveCache };
//# sourceMappingURL=fs-cache.mjs.map