Enable Valkey under hosting-panel.net → Tools → Valkey Manager, then use the socket path and settings shown there in your app.
If you do not set a TTL on keys, consider the allkeys-lru eviction policy.
Redis Object Cache for WordPress
Follow the Unix socket connection notes in the Redis Object Cache readme:
define( 'WP_REDIS_SCHEME', 'unix' );
define( 'WP_REDIS_PATH', '/tmp/redis.sock' );
define( 'WP_REDIS_MAXTTL', 604800 );
LiteSpeed Cache
Under Object Cache, turn Object Cache ON. Set Host to /tmp/redis.sock and Port to 0, then Save Changes.
Laravel
composer require predis/predis:^2.0
.env example:
CACHE_DRIVER=redis
REDIS_SCHEME=unix
REDIS_HOST=///tmp/redis.sock
REDIS_PASSWORD=null
REDIS_PORT=0
REDIS_CLIENT=predis
Magento 2
bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=/tmp/redis.sock --cache-backend-redis-port=0 --cache-backend-redis-db=0
Related articles