etcd-cpp-apiv3/v3/include/KeyValue.hpp

21 lines
278 B
C++

#ifndef __V3_ETCDV3KEYVALUE_HPP__
#define __V3_ETCDV3KEYVALUE_HPP__
#include "proto/kv.pb.h"
namespace etcdv3
{
class KeyValue
{
public:
KeyValue();
mvccpb::KeyValue kvs;
void set_ttl(int ttl);
int get_ttl() const;
private:
int ttl;
};
}
#endif