Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid installing Redis library if it's not used #574

Merged
merged 1 commit into from
Nov 25, 2023

Conversation

leio10
Copy link
Contributor

@leio10 leio10 commented Nov 23, 2023

This PR tries to solve #521.

Instead of loading the Redis cache module to import a class, it checks the value of the parameter given to the factory. This is important, because the module loading process tries to install redis library if it's not installed, even if it's not used.

@sre-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: leio10
To complete the pull request process, please assign cxie after the PR has been reviewed.
You can assign the PR to them by writing /assign @cxie in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot
Copy link
Collaborator

Welcome @leio10! It looks like this is your first PR to zilliztech/GPTCache 🎉

@mergify mergify bot added the needs-dco label Nov 23, 2023
@SimFG SimFG changed the base branch from main to dev November 23, 2023 09:17
@SimFG SimFG merged commit 272219b into zilliztech:dev Nov 25, 2023
3 of 6 checks passed
@leio10 leio10 deleted the patch-1 branch November 27, 2023 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants