I have a requirement to use Standalone, Sentinel or Cluster Connection for Redis which should pick the respective connection based on property specified in properties file.
example:
connectionType=cluster.
Then it should create StatefulRedisClusterConnection object.
if connectionType=standalone
Then it should create StatefulRedisConnection object
What is the best design pattern to achieve the type of connection at runtime?