Closed a9raag closed 1 year ago
@a9raag can you get me the error message?
@SimFG added the error trace.
@SimFG I know where it is coming from.
Migrator.run() creates Indexes necessary for Redis Search.
But during the creation, it picks up localhost
connection from the pool instead of the cluster collection.
I have a solution:
We can modify the connection to be used in the instance of RedisModel
by updating the Meta
class.
While calling the get_models
method provide the Redis connection as a parameter and this will be used to update the Meta class for all RedisModel
s
@a9raag Thank your pull request!!!
Current Behavior
The GPTCache server works fine while using the local Redis instance but, I am getting a connection error while trying to connect to Remote Redis Instance
Expected Behavior
GPTCache server should start without errors
Steps To Reproduce
Environment
Anything else?
No response