import { cache } from "https://deno.land/x/proc@0.22.1/mod.ts";
fetch and put in one step.
Example
const peerings = await cache.cache(
"vpc-peerings",
async () => await proc.enumerate(allPeerings()).collect(),
{ timeout: 4 * HOURS },
);
import { cache } from "https://deno.land/x/proc@0.22.1/mod.ts";
fetch and put in one step.
Example
const peerings = await cache.cache(
"vpc-peerings",
async () => await proc.enumerate(allPeerings()).collect(),
{ timeout: 4 * HOURS },
);