diff --git a/common/redisclient.h b/common/redisclient.h index b9aa0f5c4..595303130 100644 --- a/common/redisclient.h +++ b/common/redisclient.h @@ -32,23 +32,23 @@ class RedisClient std::vector keys(std::string key); - std::vector hkeys(std::string key); + //std::vector hkeys(std::string key); void set(std::string key, std::string value); void hset(std::string key, std::string field, std::string value); - void mset(std::unordered_map map); + //void mset(std::unordered_map map); - void hmset(std::string key, std::unordered_map map); + //void hmset(std::string key, std::unordered_map map); std::shared_ptr get(std::string key); std::shared_ptr hget(std::string key, std::string field); - std::vector> mget(std::vector keys); + //std::vector> mget(std::vector keys); - std::vector> hmget(std::string key, std::vector fields); + //std::vector> hmget(std::string key, std::vector fields); int64_t incr(std::string key); diff --git a/pyext/swsscommon.i b/pyext/swsscommon.i index e46cef245..32d26c9bd 100644 --- a/pyext/swsscommon.i +++ b/pyext/swsscommon.i @@ -10,6 +10,7 @@ #include "redispipeline.h" #include "redisselect.h" #include "redistran.h" +#include "redisclient.h" #include "producerstatetable.h" #include "consumertablebase.h" #include "consumerstatetable.h" @@ -78,3 +79,4 @@ %clear std::vector> &values; %include "notificationproducer.h" +%include "redisclient.h"