Redis
Hostim.dev provides managed Redis instances that you can add to any project. Redis is an in-memory data store, commonly used for caching, pub/sub systems, and fast key-value storage.
Free tier
Redis includes a free plan with a small amount of RAM, ideal for experimenting or lightweight workloads.
When to use Redis
Use Redis when you need:
- Fast caching for APIs or web content
- Session storage for web apps
- Queues or pub/sub message systems
Redis is not meant for storing large datasets or acting as a permanent database.
How to add Redis
- Open your project in the dashboard
- Click Create Service -> New Redis
- Give your Redis a name
- Choose a plan (size of the instance)
- Click Create Redis
Hostim will provision the Redis instance and provide connection details.
Connection details
Once created, you'll receive:
- Hostname
- Port
Apps inside the same project can connect using the internal hostname. Redis is not password protected, but it is isolated per project.
Environment variables
Just like MySQL and PostgreSQL services, each Redis instance exposes environment
variables based on its name. If you create a Redis store named cache
, you can
reference CACHE_REDIS_HOST
, CACHE_REDIS_DB
and CACHE_REDIS_PORT
in your
app configuration using the $(VAR_NAME)
syntax.
Managing Redis
You can:
- Scale Redis instance size up or down
- Remove the Redis instance when no longer needed
Accessing Redis via SSH
If you want to inspect keys or interact with Redis using redis-cli
, you can SSH into the Bastion container for secure internal access.
More features like external access, metrics, logs may be added in future versions.