zephyr-agent
Version:
Zephyr plugin agent
20 lines (19 loc) • 723 B
JavaScript
import "node:module";
import { getItem, removeItem, setItem, storage } from "./storage.mjs";
import { StorageKeys } from "./storage-keys.mjs";
async function setAppHashCache(application_uid, value) {
await storage;
await setItem(`${StorageKeys.ze_hash_cache}:${application_uid}`, value, {
ttl: 86400000
});
}
async function getAppHashCache(application_uid) {
await storage;
return getItem(`${StorageKeys.ze_hash_cache}:${application_uid}`);
}
async function removeAppHashCache(application_uid) {
await storage;
await removeItem(`${StorageKeys.ze_hash_cache}:${application_uid}`);
}
export { getAppHashCache, removeAppHashCache, setAppHashCache };
//# sourceMappingURL=hash-cache.mjs.map