Key-value store
env.CACHE.get/put/list/delete for config, sessions and counters, with optional expiry and metadata.
Key-value namespaces and file buckets your edge functions use through env, managed from the lyrcloud CLI. Each account’s data is kept apart.
// lyrcloud.json: "kv": { "CACHE": "cache" }, "buckets": { "FILES": "uploads" }
export default {
async fetch(request, env) {
const visits = Number(await env.CACHE.get('visits') ?? 0) + 1;
await env.CACHE.put('visits', String(visits));
const logo = await env.FILES.get('logo.svg');
return new Response(`Visit #${visits}`);
},
};
env.CACHE.get/put/list/delete for config, sessions and counters, with optional expiry and metadata.
env.FILES.put/get/list/delete for uploads and assets, up to 4 MB per file, with content types kept.
lyrcloud kv and lyrcloud bucket read, write and list your data without writing code.
lyrcloud dev keeps the same data in .lyrcloud/ in your project, so local and live code match.
Each function gets a signed token that only opens its owner’s data. Files are encrypted at rest.
Coming soon: SQL databases for your functions.
Register or transfer a domain with free WHOIS privacy and Lyrcloud DNS, paid by card or with Lyrpay.
Learn moreResponse caching, static files and whole static sites for your edge functions, with cache headers you control and purges from the CLI.
Learn moreRate limits, IP rules, a firewall for common attacks, bot checks and secure headers for your edge functions, set in lyrcloud.json and enforced before your code runs.
Learn moreCreate a free account in under a minute. No credit card required.