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
Is your feature request related to a problem? Please describe
It would be good to customize how pooled connections are validated. Out of the discussion at spring-projects/spring-data-redis#3067 (comment) (which boils down to defunct connections that end up with timeouts as the remote peer isn't responsive) it would be neat to customize the connection validation. Right now, RedisPooledObjectFactory.validateObject(…) performs isOpen validation.
Describe the solution you'd like
By accepting a functional interface returning a boolean flag, it would be possible that callers provide their own validation function. Having another overload of ConnectionPoolSupport.createGenericObjectPool(…) could accept either a Predicate or, better an argument object that encapsulates Predicate isValid and boolean wrapConnections.