Skip to content
cloudhost
Cache

A cache you pay for per command.

Connect with any cache client or a plain HTTP request. For sessions, counters, small queues and cached responses. Billed per command, and it sleeps when idle.

What you get

  • Cache clients

    Any cache client, in any language, on port 6379, with a token as the password.

  • A REST API

    Send a command as a JSON array, one or many in a pipeline. For places where a lasting connection is not possible.

  • env.CACHE in functions

    Bind a function or app to the cache, with no token in your code.

  • Every data type

    Strings and counters, hashes, lists, sets, sorted sets, streams with consumer groups, blocking pops, HyperLogLog, geo and SORT. Transactions with MULTI and EXEC, and Lua scripts.

  • Pub/Sub

    PUBLISH and SUBSCRIBE for server-side clients. To reach browsers, use Realtime channels.

  • Sleeps when idle

    The cache stops when there is nothing to do and keeps its data. The next command starts it again.

  • No acknowledged write is lost

    A write is acknowledged once it is stored durably. If a server fails, the cache opens on another one with all its data.

  • Data larger than memory

    Memory holds the hot data; it is not a limit on your data. Cold keys are read from storage, and your plan sets the stored-size limit.

  • Checkpoints

    Checkpoints are kept 7 to 30 days by plan. Restore one over the same cache, or into a new cache.

  • Read-only tokens

    Give a service that only reads a token that cannot write. Each token can be revoked on its own.

  • An IP allow-list

    Limit connections to the addresses and ranges you list. Your own code on the platform, through env.CACHE, always gets through.

  • A cache per preview

    Each preview gets its own empty cache, removed with it; the production cache is never touched.

  • Memory and eviction

    32 to 256 MB of memory. When full, old keys are evicted or writes fail; you choose.

  • Observability

    Commands, hit rate, memory, key count and evictions.

  • Commands from the CLI and MCP

    Run commands with cloudhost caches run or from your AI assistant, with no client to install.

Three ways into one cache

A cache client, an HTTP request, or a direct binding from a function.

cloudhost caches create sessions --project shop --memory 64
# host   cache-3f9a2c1e7b6d4a05.cache.trustpage.ir:6379
# token  shown once

Per command

You pay for commands, bandwidth and the data you keep, not for hours switched on. An idle cache costs its storage only. It comes out of the month's credit first.

Questions

Create a cache

One command, one address, one token.

Sign-up is by invite for now. If you have a code, create your account.

Sign up withEmail codeSMS code