Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions blog/2024/2024-08-28-redis-cluster-tls-laravel/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,23 @@ SESSION_DRIVER=redis
SESSION_CONNECTION=aws

CACHE_STORE=redis
CACHE_PREFIX=alpha_
CACHE_PREFIX={alpha}_

REDIS_CLUSTER_HOST=clustercfg.project-redis-cluster.xxxxxx.use1.cache.amazonaws.com
REDIS_CLUSTER_PORT=6379
REDIS_PERSISTENCE=true
REDIS_PREFIX=alpha_
REDIS_CACHE_CONNECTION=aws
REDIS_CACHE_LOCK_CONNECTION=aws
REDIS_QUEUE_CONNECTION=aws
```

:::info

Now your probably thinking - why not just set `REDIS_PREFIX={alpha}_` and be done with it? In normal circumstances we could, but a larger system could not rely on a single hard-coded hash tag for all keys - we had to get creative.

:::


So lets break this down:

* Anything `_DRIVER`, `_STORE` or `_CONNECTION` is simply pointing that feature of Laravel to our new Redis Cluster `aws` connection.
Expand Down