Create a Redis database
Create a managed Redis-compatible database in about a minute. Pick the memory size, the eviction policy, whether data persists to disk, and the region.
Before you start: you need permission to create Redis databases (Owners, Admins and Developers by default).
-
Go to Data & Storage › Redis and select Create Redis.
-
Enter a Name: 2 to 32 lowercase letters, numbers or hyphens, starting with a letter. It becomes part of the host name.
-
Optionally pick a Project to group the cost on invoices.
-
Pick the Memory plan. Each plan shows its memory, vCPU and monthly price. You can move to a bigger or smaller plan later; it applies instantly, with no restart.
-
Choose the Eviction policy: what happens when memory is full.
Policy Behavior allkeys-lruEvicts the least recently used keys. Best for caches volatile-lruEvicts least recently used keys that have an expiry; keys without one are kept allkeys-lfuEvicts the least frequently used keys; keeps hot keys longer volatile-ttlEvicts the keys closest to expiring first noevictionRejects writes with an out-of-memory error when full. Use for queues and locks -
Choose Persistence:
- AOF on: every write is logged to disk and synced each second. Data survives restarts.
- AOF off: fastest; data is lost when the cache restarts. Fine for pure caches.
-
Pick the Region closest to your app servers. The price is the same everywhere.
-
Check the Summary and select Create followed by the name (for example Create sessions).
View as code shows the same request as an API call.
Check that it worked
The database shows Creating and is Running in about a minute. Then open its Connection tab: see Connect to Redis.
Related
Redis
Managed Redis-compatible caches for sessions, locks, rate limits and leaderboards, running Valkey 8 with TLS, trusted sources and daily backups.
Connect to Redis
Connect your app to an Infraista Redis database over TLS with a rediss:// URL, valkey-cli or redis-cli, and client examples for Node.js, Python and PHP.