Redis
Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams.
Add a Redis database to your application
To add a dedicated Redis instance to your existing application, simply add these lines to your configuration file:
application:...databases:- type: redisversion: 6name: my-redis
- name: select a name for your database
- version: choose the version of the database
- type: the database engine (redis in this case)
Supported versions
Here are the Redis versions supported by Qovery.
Version | Supported |
---|---|
6 | Yes |
5 | Yes |
Qovery does not support a new version of Redis yet? Contact us
Get access to your Redis database
To get the connection information of your database, you can use the CLI:
qovery application env list -c
$ qovery application env list -cSCOPE | KEY | VALUE--------------+---------------------------------------------------------------+-----------BUILT_IN | QOVERY_BRANCH_NAME | masterBUILT_IN | QOVERY_IS_PRODUCTION | trueBUILT_IN | QOVERY_DATABASE_MY_REDIS_NAME | my-redisBUILT_IN | QOVERY_DATABASE_MY_REDIS_TYPE | redisBUILT_IN | QOVERY_DATABASE_MY_REDIS_VERSION | 6BUILT_IN | QOVERY_DATABASE_MY_REDIS_CONNECTION_URI | <hidden>BUILT_IN | QOVERY_DATABASE_MY_REDIS_CONNECTION_URI_WITHOUT_CREDENTIALS | <hidden>BUILT_IN | QOVERY_DATABASE_MY_REDIS_HOST | <hidden>BUILT_IN | QOVERY_DATABASE_MY_REDIS_FQDN | <hidden>BUILT_IN | QOVERY_DATABASE_MY_REDIS_PORT | <hidden>BUILT_IN | QOVERY_DATABASE_MY_REDIS_USERNAME | <hidden>BUILT_IN | QOVERY_DATABASE_MY_REDIS_PASSWORD | <hidden>BUILT_IN | QOVERY_DATABASE_MY_REDIS_DATABASE | redis
In the output, you get all data you need to use the database. Those environment variables are available in the runtime of your application.
Show Redis database status
To know more about your database status, run:
qovery status -c
DATABASE NAME | STATUS | TYPE | VERSION | ENDPOINT | PORT | USERNAME | PASSWORD | APPLICATIONS----------------+---------+---------+---------+----------+----------+----------+----------+-----------------my-mongo | running | redis | 6 | <hidden> | <hidden> | <hidden> | <hidden> | simple-example
Delete your Redis database
To delete a database, you have to:
- Remove it from the configuration file, commit and push.
- Delete it manually (for security purpose) through the Qovery web interface.
Redis backup
Daily backups for your Redis database are automatically done for Production environments.