in common/table.h [221:272]
def _del(self, *args, **kwargs):
return self.delete(*args, **kwargs)
%}
#endif
virtual void hdel(const std::string &key,
const std::string &field,
const std::string &op = "",
const std::string &prefix = EMPTY_PREFIX);
/* Read a value from the DB directly */
/* Returns false if the key doesn't exists */
virtual bool get(const std::string &key, std::vector<FieldValueTuple> &ovalues);
virtual bool hget(const std::string &key, const std::string &field, std::string &value);
virtual void hset(const std::string &key,
const std::string &field,
const std::string &value,
const std::string &op = "",
const std::string &prefix = EMPTY_PREFIX);
void getKeys(std::vector<std::string> &keys);
void setBuffered(bool buffered);
void flush();
void dump(TableDump &tableDump);
protected:
bool m_buffered;
bool m_pipeowned;
RedisPipeline *m_pipe;
/* Strip special symbols from keys used for type identification
* Input example:
* port@
* DB entry:
* 1) "ports@"
* 2) "Ethernet0,Ethernet4,...
* */
std::string stripSpecialSym(const std::string &key);
std::string m_shaDump;
};
class TableName_KeyValueOpQueues {
private:
std::string m_keyvalueop;
public:
TableName_KeyValueOpQueues(const std::string &tableName)
: m_keyvalueop(tableName + "_KEY_VALUE_OP_QUEUE")
{