[VOL-5359] Add redis option as KVStore
Change-Id: I84ab0631e7fb53313a2ce3b451170eead949a068
Signed-off-by: Abhay Kumar <abhayk@radisys.com>
diff --git a/database/database.go b/database/database.go
index 5be86b5..0178a07 100644
--- a/database/database.go
+++ b/database/database.go
@@ -62,6 +62,9 @@
case "redis":
database.kvc, err = kvstore.NewRedisClient(address, time.Duration(timeout), false)
return &database, err
+ case "redis-sentinel":
+ database.kvc, err = kvstore.NewRedisClient(address, time.Duration(timeout), true)
+ return &database, err
case "etcd":
database.kvc, err = kvstore.NewEtcdClient(ctx, address, time.Duration(timeout), log.ErrorLevel)
return &database, err