Skip to content

Commit

Permalink
fix: Remove set name to connection, redis outdated in GCP
Browse files Browse the repository at this point in the history
  • Loading branch information
jpvargasdev committed Sep 25, 2024
1 parent 3186e6d commit cccc089
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/odd-dragons-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sebspark/promise-cache": patch
---

Error in GCP Redis MemoryStore, doesnt support SETNAME command
2 changes: 1 addition & 1 deletion packages/promise-cache/src/persistor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class Persistor {
try {
await new Promise((resolve, reject) => {
this.client = CACHE_CLIENT({
...this.redis,
url: this.redis?.url,
socket: {
reconnectStrategy: (retries, cause) => {
console.error(cause)
Expand Down

0 comments on commit cccc089

Please sign in to comment.