Skip to content
Development and deployment2 min read

What is Redis?

Short answer

Redis is an open-source data store that keeps data in RAM as key-value pairs, so reads and writes usually take well under a millisecond. It's mostly used as a cache in front of the database, and for sessions, job queues and short-lived counters.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Core data structures
  2. Example: a simple cache
  3. Common mix-ups and problems
  4. On ArabyHost

Salvatore Sanfilippo started Redis in 2009; the name stands for Remote Dictionary Server. Its speed comes from keeping data in RAM rather than on disk, with simple commands that work on ready-made data structures.

Core data structures

Type Example use
String Caching a page or a query result
Hash A user’s session data
List A job queue
Set and sorted set Unique lists, leaderboards
Pub/Sub and Streams Real-time messages between parts of an app

Any key can have an optional expiry (TTL) after which it’s deleted automatically, which is what makes Redis such a natural fit for caching.

Example: a simple cache

SET product:42 "{\"name\":\"T-shirt\",\"stock\":7}" EX 600
GET product:42
TTL product:42
INCR visits:2026-11-26

The first line stores the product data for ten minutes (600 seconds); the last bumps today’s visit counter. Apps connect to Redis on its default port, 6379.

Common mix-ups and problems

  • Memory is finite: when it fills up, Redis evicts keys according to its eviction policy, or refuses writes.
  • Not for permanent data: don’t keep financial orders in Redis alone.
  • Object cache isn’t page cache: in WordPress, Redis stores query results (object cache), while a page cache serves the whole page without running PHP, usually the bigger speed win.
  • Licensing: Redis changed its license in 2024, then added an AGPL option with version 8 in 2025; that change is why Valkey exists.

On ArabyHost

ArabyHost doesn’t offer Redis per account. Practical alternatives on our hosting plans:

  • WordPress and WooCommerce: page caching with LiteSpeed Cache on the LiteSpeed web server.
  • Laravel: use CACHE_STORE=database or file, and QUEUE_CONNECTION=database: the defaults since Laravel 11.
  • Node.js and Python: an in-process cache for small data, or a table in MySQL.

If your app truly depends on Redis, you can use an external managed Redis service after confirming with support that your account can reach it. Note that a VPS isn’t available yet; it’s planned.

FAQ

Is Redis a replacement for MySQL?

In most cases, no. Redis complements the database as a fast layer for temporary data, while permanent data such as orders and accounts stays in MySQL or PostgreSQL.

Is Redis data lost on restart?

It can be saved to disk with RDB snapshots or an AOF log, but the setup varies from server to server. Treat Redis as temporary storage unless you've configured persistence yourself.

What is Valkey?

An open-source fork of Redis launched by the Linux Foundation in 2024 after Redis changed its license. It's compatible with Redis commands for most uses.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.