You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases InjectRedis and InjectCluster won't handle dependencies correctly(for example: a module import RedisModule and re-export it will cause "Cannot resolve dependency" error) thus leading to errors and there is no better solution so InjectRedis and InjectClusterwas removed and please use RedisService & ClusterService instead which is the most stable solution.
RedisService & ClusterService has two instance methods:
getOrThrow: Retrieves a redis|cluster connection by namespace. However, if the query does not find a connection, it returns ClientNotFoundError: No Connection found error.
getOrNil: Retrieves a redis|cluster connection by namespace, if the query does not find a connection, it returns null;