Перейти к основному содержимому

TTL-обратный отсчёт

Every key below has a Time-To-Live. When the TTL reaches 0, Redis deletes the key automatically.

No TTL entries found. Create one below or reseed from the Connection page.

Create a key with TTL:

Скользящее истечение

Access extends the TTL — like a session that stays alive while you're active. Click "Access" to reset the TTL.

Ограничение запросов

Sliding window rate limiter powered by @upstash/ratelimit. Click repeatedly to see the limit in action.

Кэш vs БД

When to use each data paradigm — a quick reference for choosing the right tool.

Кэш (Redis) Реляционная (PostgreSQL) Граф (Neo4j) Объектное хранилище (R2)
Data lifetime Ephemeral (TTL) Permanent Permanent Permanent
Data shape Key-value Tabular rows Nodes + edges Binary blobs
Best for Sessions, counters, rate limits Transactions, reports, CRUD Relationships, traversals Files, images, backups
Latency <10ms 50-200ms 100-500ms 50-300ms
Consistency Eventual ACID ACID Eventual
Query language Redis commands SQL Cypher S3 API