Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

untymage's avatar

Does Redis is a 'database' ?

I was browsing into my 'database.php' config file and just saw this comment :

    /*
    |--------------------------------------------------------------------------
    | Redis Databases
    |--------------------------------------------------------------------------
    |
    | Redis is an open source, fast, and advanced key-value store that also
    | provides a richer body of commands than a typical key-value system
    | such as APC or Memcached. Laravel makes it easy to dig right in.
    |
    */

Why laravel call it 'databases'? Does redis persist data into ram ? i mean if i restart my machine does data still there ? As my understanding a database should have tables, Do redis have it?

0 likes
2 replies
Sinnbeck's avatar

I think it's just where it fits in the best. But you cannot use it with eloquent. That being said, there are such a thing as no sql databases that does not have tables (redis isn't this either though). It's also why it use the term store in the description.

But redis is persistent across reboots. It's enabled by default https://redis.io/docs/manual/persistence/

1 like
kokoshneta's avatar

The Redis website calls it a database right on their front page:

A vibrant, open source database

Voted the most-loved database for 5 years running, Redis is at the center of an engaged community of developers, architects, and open source contributors.

Redis has data structure, which is what defines a database. Tables are just one form of data structure.

1 like

Please or to participate in this conversation.