Use managed Valkey
Valkey is an in-memory data store. Apps use it to cache pages and query results, keep sessions, and run job queues, because it answers in well under a millisecond. Valkey speaks the same protocol as Redis, so Redis libraries and plugins work with it unchanged.
Find the connection details
- Open your Valkey service from Services, then Connect.
- Connection details lists the Host, Port and User. Choose Show password and confirm. We show the password once, so copy it into a password manager.
Connections are encrypted, so use a rediss:// address, with two s's:
rediss://default:[email protected]:25061
Your host ends in barbrick.cloud, but the certificate names the server behind it. Turn off your library's certificate name check, as the panel's examples do, or it refuses to connect. The connection stays encrypted.
Let your app in
Add your app's address under Who can connect and choose Allow, the same way as for a database. See Connect to a managed database. To connect a site on your Barbrick hosting, use Connect to my hosting site. Node.js and Python apps get REDIS_URL and VALKEY_URL settings added for you. For WordPress sites, the panel shows the lines to paste.
Use it from WordPress
Object cache plugins that support Redis work with Valkey. Add these lines to wp-config.php above "That's all, stop editing":
define('WP_REDIS_SCHEME', 'tls');
define('WP_REDIS_HOST', 'cache-1234-db.barbrick.cloud');
define('WP_REDIS_PORT', 25061);
define('WP_REDIS_USERNAME', 'default');
define('WP_REDIS_PASSWORD', 'YOUR_PASSWORD');
define('WP_REDIS_SSL_CONTEXT', ['verify_peer' => false, 'verify_peer_name' => false]);
What to store
Treat Valkey as fast, short-term memory. Keep the real copy of anything important in your database, because cached data can be cleared.
Valkey is hosted in Canadian datacentres. Canadian regions of US-owned providers remain subject to US law, including the CLOUD Act. See Where your data is stored.
If something goes wrong
- The connection hangs. Your app's address isn't allowed, or the library isn't using TLS. Check both.
WRONGPASS. Check the password in your password manager, or choose Reset to get a new one.
Still stuck? Ask us and we'll walk you through it.