AI agent? Read uno.place/llms.txt — connect to the person's account without a password.

What is a key-value store

A key-value store is a database that works like a dictionary: you save a value under a key and read it back by that key. It does one job, a quick lookup by key, and gives up searching and joining in exchange. Redis is the best-known example.

A program sends SET, GET and DELETE commands to a key-value store. The store holds pairs: a session key with a user, a rate-limit key with a counter, and a cache key with a page. Your program a web app, a bot, a worker SET key value GET key DEL key Key-value store session:42 the user who is signed in; expires in an hour "alice" rate:203.0.113.5 requests from one address in this minute 17 cache:/pricing a page that is costly to build; reuse it for a minute <html>…
Every item has one unique key. You reach it only by that key, or by a pattern in the key's name.

How it works

Redis stands for Remote Dictionary Server. Each item in Redis has a unique key; values are strings, hashes, lists, sets, sorted sets, streams and more. The same few commands cover most uses: set a value, get it, delete it, make it expire, and add one to a counter.

redis-cli
> SET session:42 "alice" EX 3600
OK
> GET session:42
"alice"
> INCR visits
(integer) 1

SET key value EX seconds sets a value that expires after the given number of seconds. INCR adds one to the number stored at a key and starts from 0 if the key does not exist. That makes it a good fit for sessions, counters, rate limits and caches, Redis itself lists caching, queuing and event processing among its uses.

A key-value store lives in a separate process. Many programs can read and write the same keys, and the data survives a restart of any one of them, if the store is set up to keep it.

Does it keep the data?

That depends on the setting. Redis works in memory first, and you choose how much of it goes to disk: RDB takes point-in-time snapshots at intervals, AOF logs every write, and you can turn persistence off, which is sometimes done for caches.

No persistenceSnapshots (RDB)Append-only file (AOF)
What is writtenNothingThe whole dataset, at intervalsEvery write
After a crashEverything is gonewith snapshots only, expect to lose the latest minutes of writes if Redis stops without a clean shutdownwith AOF and the default fsync every second, you can lose about one second of writes
Good forA cache you can rebuildData you can mostly rebuildData you care about
From the Redis documentation, checked 16 October 2026. by default Redis saves snapshots of the dataset to a file called dump.rdb.

Redis suggests using both RDB and AOF for a degree of data safety comparable to PostgreSQL. Redis says to back up your database: disks break and cloud instances disappear, so copy the snapshot file somewhere else too.

Key-value, database and file storage

Key-value storeRelational databaseObject storage
You find data byThe keyA query on any columnBucket and key
Best forSessions, counters, caches, queuesRecords you search and joinFiles and backups
Size of one valueSmallRowsWhole files
Relations between itemsNoYesNo

Files go to S3 object storage. Records you search and join go to a database such as managed Postgres. The key-value store sits between your app and those two, for the small data you read all the time.

Do you need it?

Take a key-value store when

  • You read the same small data often. A cache saves repeated work.
  • Data expires. Sessions, one-time codes, rate limits.
  • Several programs count together. One shared counter, one queue.

Skip it when

  • You search by content. "All orders from May" is a query for a database.
  • You have one program and a few settings. A file or a table is simpler.
  • You cannot lose the data and will not set up persistence. Use Postgres.

Key-value on Uno

Two simple ways, both on a computer you control. For small apps, ask the agent for a Postgres database and keep a table of keys and JSON values: the data sits next to your other tables. For caching and counters, run Redis in Docker on your computer; every paid plan has root and Docker. Redis listens on port 6379, so publish it on 127.0.0.1 only, as below, and keep it closed to the internet.

Get your computer

Small: $5 a month

Two ways to do it on your computer

# 1. A key-value table in Postgres
create table kv (key text primary key, value jsonb not null);

insert into kv (key, value) values ('user:42', '{"plan":"plus"}')
  on conflict (key) do update set value = excluded.value;

select value from kv where key = 'user:42';

# 2. Redis in Docker, saving a snapshot every 60 seconds if anything changed
$ docker run --name some-redis -d -p 127.0.0.1:6379:6379 redis redis-server --save 60 1

INSERT ... ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value inserts a new row or updates the existing one. The PostgreSQL docs say most applications should store JSON data as jsonb, which can be indexed. Managed databases on Uno run Postgres only, so for Redis you run the container yourself.

The computer sleeps when idle, and memory and running programs are saved while it sleeps, so a running Redis is still there after the wake. Keep the snapshot setting anyway: it protects you from a crash or a deleted computer.

A computer for Redis and your app, from $5 a month

Every plan is a real Linux computer with root and Docker. Move up or down any time; your files come with you.

Small

A Telegram bot, a VPN, a small backend

$5/ month

  • 1 vCPU · 1 GB
  • 15 GB disk
  • 25 GB cloud storage
  • 5 boosts a month
Get Small

Plus

Agents that work with your laptop closed

$20/ month

  • 4 vCPU · 4 GB
  • 40 GB disk
  • 100 GB cloud storage
  • Uno Work in the cloud
Get Plus

Pro

A product in production, a second MacBook

$70/ month

  • 16 vCPU · 16 GB
  • 120 GB disk
  • 300 GB cloud storage
  • Speed of a MacBook Air M4
Get Pro

Max

A team and many agents at once

$200/ month

  • 32 vCPU · 48 GB
  • 300 GB disk
  • 1,024 GB cloud storage
  • 5 public IPv4
Get Max

Add Uno AI to any plan: 40 h of AI work a month on Small, 100 h on Plus, unlimited on Max. Today: GLM-5.3 Flash and MiMo v2.6 Pro. Or sign in with your own Claude or ChatGPT.

Questions

Is Redis a database or a cache?
Both, depending on the setting. With no persistence it is a cache. With snapshots or an append-only file it keeps data across restarts.
What is the difference from a hash map in my code?
The idea is the same. A key-value store runs as its own process, so many programs share it, and it can keep the data when your program restarts.
Key-value or a document store?
A document store keeps JSON and lets you query inside it. Postgres with a jsonb column gives you both: look up by key, or search by what is inside the value.
Does Redis need a lot of memory?
It keeps the dataset in memory, so memory use grows with your data. Count your keys before you pick a plan: Small has 1 GB, shared with your app.

Next

  1. What is managed PostgresA Postgres database someone else installs, updates and backs up. You get a connection string.
  2. What is S3 object storageFiles kept as objects in buckets, reached by web requests.
  3. How to get a Postgres database in a minuteOne Docker command, a connection string, a backup. Or one request to the agent.

Postgres or Redis, on a computer you control

Ask the agent for a Postgres table, or run Redis in Docker. Root and Docker come with every paid plan. Small is $5 a month.

Get your computer