Skip to content

Commit

Permalink
feat(vector-store): add freeFunction to disconnect Redis client
Browse files Browse the repository at this point in the history
  • Loading branch information
dingyi222666 committed Dec 31, 2024
1 parent c225597 commit 7cea793
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vector-store-service/src/vectorstore/redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ export async function apply(
batchSize: options?.batchSize
})
},
async freeFunction() {
await client.disconnect()
},
async saveableFunction(store) {}
}
)
Expand Down

0 comments on commit 7cea793

Please sign in to comment.