Skip to content
Impulse SoftwareDOCS
Get modules

ImpulseCache

Verified for ImpulseCache 2.0.0 ·

Connecting a cache client

Every instance is delivered over TLS with authentication on by default. Customers manage their cache from the WHMCS client area — copying the rediss:// connection URI, running live connection tests, tuning eviction and keyspace notifications, inspecting metrics sparklines, and creating or restoring snapshots.

When a customer opens their Managed Valkey service in the WHMCS client area, the Overview tab surfaces:

  • one-click endpoint copy,
  • live status and TLS badges,
  • a memory usage bar alongside total keys, active connections, and cache hit rate, and
  • quick actions for connecting, rotating credentials, and inspecting metrics.

ImpulseCache client area Overview tab displaying copyable Valkey TLS endpoint, running and TLS status badges, memory usage bar, keys, active connections, cache hit rate, and quick actions

Connection details are provided as a single URI. A dedicated instance’s looks like this:

rediss://:[email protected]:6380/0

A shared-plan instance’s names its user and uses its own port on the shared server:

rediss://default:[email protected]:16042/0

The rediss:// scheme (note the double “s”) means the connection is TLS-encrypted. The parts are:

Part Meaning
Scheme rediss:// — a TLS-encrypted Redis/Valkey connection.
User default — the instance’s ACL user. Dedicated URIs leave it out, which means the same user.
Password The instance’s authentication password (shown after the colon).
Host The instance’s hostname.
Port The TLS port: 6380 by default on a dedicated instance (Settings → DNS & TLS → Valkey TLS port); on a shared plan, the port the pool box assigned to that instance. The plaintext port is disabled.
Database /0 — the default database index.

The Connect & Access tab groups credentials, live verification, language snippets, TLS certificates, IP allowlisting, and runtime cache settings in one workspace:

  1. Enter the account password and click Reveal Connection String. The password is masked until revealed, and only shown for that page view. An administrator signed in as the client isn’t asked for the customer’s password; the reveal is recorded under the admin account.
  2. Click Test Connection to run a live check against the Valkey instance — returning live latency, key count, and connected clients (rate-limited to once every 10 seconds).
  3. Copy a ready-to-run snippet from the built-in 5-language Client Snippets switcher (valkey-cli, Node ioredis, Python redis-py, PHP phpredis, and Go go-redis).

The module also stores the connection string (REDIS_URL) in ImpulseCore’s encrypted secret store and contributes REDIS_URL to Core’s unified environment exporter for project-aware apps.

ImpulseCache client area Connect and Access tab showing password-step-up Reveal Connection String, Rotate Password and Rotate Now controls, live Test Connection check, 5-language client snippets, TLS certificate status, IP allowlist with Use my IP, and Cache Configuration

The TLS Certificate card on Connect & Access shows whether the server uses a publicly trusted Let’s Encrypt certificate (issued via automated Cloudflare DNS-01) or a self-signed certificate:

  • Let’s Encrypt DNS-01 TLS: standard OS trust stores verify the certificate automatically — no CA file is required.
  • Self-signed TLS: the card provides a direct ca.crt download button so the customer can pass the certificate to their client library without using openssl manually.

Managed Valkey speaks the Redis wire protocol, so any Redis-compatible library connects unchanged. Omit the CA certificate option when the server uses a publicly trusted Let’s Encrypt certificate; pass the downloaded ca.crt when self-signed:

Terminal window
# valkey-cli
valkey-cli -u rediss://:[email protected]:6380 --cacert ca.crt
// Node.js (ioredis)
const fs = require("fs");
const Redis = require("ioredis");
const client = new Redis("rediss://:[email protected]:6380/0", {
tls: { ca: fs.readFileSync("ca.crt") },
});
# Python (redis-py)
import redis
client = redis.from_url("rediss://:[email protected]:6380/0", ssl_ca_certs="ca.crt")
// PHP (phpredis)
$redis = new Redis();
$redis->connect('tls://your-host.example.com', 6380, 2.5, null, 0, 0, [
'cafile' => 'ca.crt',
'verify_peer' => true,
]);
$redis->auth('your-password');
// Go (go-redis)
import (
"crypto/tls"
"crypto/x509"
"os"
"github.com/redis/go-redis/v9"
)
caCert, _ := os.ReadFile("ca.crt")
pool := x509.NewCertPool()
pool.AppendCertsFromPEM(caCert)
rdb := redis.NewClient(&redis.Options{
Addr: "your-host.example.com:6380",
Password: "your-password",
DB: 0,
TLSConfig: &tls.Config{RootCAs: pool},
})

Every instance requires TLS and a password, so it is never open to anonymous access. When the allowlist is empty, an explicit notice on Connect & Access reminds the customer that the endpoint accepts connections from all IP addresses over TLS + AUTH.

To restrict network access:

  1. Click Use my IP to pre-fill your current address, or enter an IP address or CIDR range (for example 203.0.113.10 or 203.0.113.0/24) with an optional label.
  2. Click Add. The rule is pushed to the instance’s firewall over the Admin Proxy — on a shared plan, scoped to that instance’s port only.

From the Cache Configuration panel on Connect & Access, customers can tune two runtime settings without SSH or CONFIG SET access:

  • Eviction Policy — choose from all 8 Valkey eviction policies (allkeys-lru, volatile-lru, allkeys-lfu, volatile-lfu, allkeys-random, volatile-random, volatile-ttl, noeviction).
  • Keyspace Notifications (notify-keyspace-events) — choose between Disabled, Ex (expired events), KEA (all keyspace and keyevent notifications), or Kg$ (generic and string commands). Changes are applied through the scoped Admin Proxy, so they work identically on shared pool boxes even though customer ACLs block CONFIG SET.

Customers can rotate credentials from Overview or Connect & Access (operators can also trigger a rotation from the WHMCS service page):

  • Rotate Password — generates and applies a new password immediately while keeping the previous password valid for a configurable grace window (default 30 minutes). A credential-rotation cron (every 5 minutes) revokes expired grace passwords on the server for zero-downtime rollover.
  • Rotate Now (No Grace) — immediately revokes the previous password and closes existing open connections. Use this when a credential is suspected compromised.

If connections fail right after a rotation, re-reveal the connection string and update the application to the current password.

The Metrics tab shows live and historical cache health collected by the hourly usage cron, plus an on-demand Refresh Metrics button (rate-limited to once every 15 seconds):

  • Inline SVG Memory Usage (%) and Cache Hit Rate (%) sparklines rendered from the last 24 samples.
  • Smart memory and eviction tuning hints when utilization or evictions climb.
  • A full metrics breakdown table covering memory, keys, hit/miss ratio, evicted keys, expired keys, and client connections.

ImpulseCache client area Metrics tab showing the on-demand Refresh Metrics control, inline SVG Memory Usage and Cache Hit Rate sparklines over the last 24 samples, smart tuning hints, and full metrics table

The Snapshots tab lists automated hourly and daily RDB snapshots alongside manual snapshots on both dedicated servers and shared pool boxes:

  • Click Create Snapshot to take an on-demand RDB snapshot.
  • Click Restore on any available snapshot and type RESTORE to confirm. Restoring replaces the cache’s current contents with the selected snapshot in place.

ImpulseCache client area Snapshots tab showing the Create Snapshot button, automated hourly and daily RDB snapshot history with storage target and retention, and typed RESTORE self-service recovery controls

Customers also have Core-rendered Security and Maintenance tabs on both dedicated and shared services to track engine security posture and scheduled maintenance windows.