Valkey (Redis) for your Laravel app
Valkey is the open-source Redis: one server for your Laravel cache, queues and sessions, backed up from the first minute.
Ask your agent
Create a Valkey server on Rowsafe Cloud for this Laravel app's cache, queues and sessions.Your agent picks a size, tells you the price and waits for your yes, then creates the server as you. Once it's ready (5 to 10 minutes), click Create a login for your app on its page in the dashboard: you see the connection details once, for your .env.
First time? Connect Rowsafe to your agent once.
Or from the terminal
rowsafe cloud create app-cache --engine valkey --wait
rowsafe db user add web --on app-cacherowsafe cloud create shows the price and asks first. rowsafe db user add makes a login for your app and prints its rediss:// connection string once. (rowsafe env is for PostgreSQL only, for now.)
Connect your app
# The connection string from rowsafe db user add, with tls:// instead of rediss://
REDIS_URL=tls://web:[email protected]:6380
CACHE_STORE=redis
QUEUE_CONNECTION=redis
SESSION_DRIVER=redisLaravel's own config/database.php reads REDIS_URL, so there's nothing else to change. tls:// encrypts the connection, and PHP checks the server's certificate. Then php artisan queue:work, or Horizon.
Backups and restores
Rowsafe backs up every change, encrypted on the server with a key only you have, so you can restore to any second. Every week it restores a backup to prove it works. Restore a copy, bring back deleted keys or rewind the whole database, in one click. Before a risky change, save a Mark (rowsafe mark), or let your agent save one.
From $0.014 an hour, never more than $10 a month.
Questions
`php artisan cache:clear` fails with NOPERM.
It empties the whole database (FLUSHDB), which app logins can't run. Clear only what you need with Cache::forget(), or use a login with admin access for that.
Why Valkey and not Redis?
Redis's license doesn't allow hosting it as a service. Valkey is the Linux Foundation's open-source fork, and Laravel's Redis drivers work with it.
How does my app's server connect?
At first only your computer can. Add your server's address under Who can connect on the server's page, or run rowsafe cloud allow app-cache ADDRESS.
More guides
- Add PostgreSQL to your Next.js appNext.js, node-postgres
- Managed MySQL for your Laravel appLaravel, MySQL 8.4
- Managed PostgreSQL for your Django appDjango, psycopg
- Managed PostgreSQL for your Rails appRuby on Rails, pg
- PostgreSQL for your Express app, with PrismaNode.js, Express, Prisma
- PostgreSQL for your FastAPI app, with SQLAlchemyFastAPI, SQLAlchemy, psycopg
- PostgreSQL with pgvector for your AI apppgvector, any framework
- A Valkey (Redis) cache for your Next.js appNext.js, node-redis
- Meilisearch for your Laravel app, with ScoutLaravel Scout, Meilisearch
- Managed MariaDB for your WordPress siteWordPress, MariaDB 11.8
- Managed PostgreSQL for your Spring Boot appSpring Boot, JDBC, HikariCP
- Managed PostgreSQL for your Go appGo, pgx
- PostgreSQL for your app, with DrizzleDrizzle ORM, node-postgres
- Valkey (Redis) for Sidekiq and your Rails appRails, Sidekiq
- Qdrant for your AI app in PythonPython, qdrant-client