A cache that keeps up with the application

Use KiviDB as a cache in front of your database or API: keys with a time to live, cache-aside and write-through patterns, with the Redis commands and clients you already use.

Put the answers your application asks for most in memory, in front of the database or API that is slow to produce them. KiviDB serves them with the Redis commands your client already sends.

Where KiviDB sits

Your application → KiviDB (a hit is answered from memory) → Your database (asked only on a miss)

Three ways to keep a cache right

  • Expire Give each key a time to live with EX or EXPIRE. Stale answers remove themselves, and the cache never needs a clean-up job.
  • Invalidate Delete or overwrite the key in the same code path that changes the source. Several keys can go in one DEL or UNLINK.
  • Let clients help CLIENT TRACKING tells a client when a key it has cached locally has changed, so it can keep its own copy safely.

What to know before you rely on it

  • A full database refuses writes KiviDB Cloud databases do not evict keys when memory is full; a write is refused with an error. Give cached keys a time to live and watch memory against the limit.
  • Structured values Cache a whole object as a hash or a JSON document and read one field without fetching the rest.
  • Many keys at once MGET and pipelines fetch a page's worth of keys in one round trip.

What KiviDB Cloud adds

  • Replicas and failover On the Pro plan a replica takes over when the primary is lost, and the hostname your application uses stays the same.
  • Durability An append-only log on paid plans, snapshots on demand, and scheduled snapshots you can switch on.
  • Access control A firewall per database, closed until you open it, database users with their own permissions, and private connectivity.

Other use cases

Put a cache in front of it

Create a free database and point your existing Redis client at it.