[VOL-5359] Add redis option as KVStore
Change-Id: I2bfb177e91e748cef3de94a525630cd53601484d
Signed-off-by: Abhay Kumar <abhayk@radisys.com>
diff --git a/cmd/openonu-adapter/main.go b/cmd/openonu-adapter/main.go
index 1d9dc3b..f0d8a76 100644
--- a/cmd/openonu-adapter/main.go
+++ b/cmd/openonu-adapter/main.go
@@ -237,6 +237,10 @@
switch storeType {
case "etcd":
return kvstore.NewEtcdClient(ctx, address, timeout, log.FatalLevel)
+ case "redis":
+ return kvstore.NewRedisClient(address, timeout, false)
+ case "redis-sentinel":
+ return kvstore.NewRedisClient(address, timeout, true)
}
return nil, errors.New("unsupported-kv-store")
}