Closed leio10 closed 7 months ago
[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.
Welcome @leio10! It looks like this is your first PR to zilliztech/GPTCache 🎉
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.