15 #ifdef _USE_AEROSPIKE_DB_
35 throw Poco::Exception(
"clc is not created");
37 cl_write_parameters_set_default(&_clwp);
53 std::string
host = url.getHost();
54 unsigned short port = url.getPort();
72 strcpy( values[0].bin_name,
"key");
73 strcpy( values[1].bin_name,
"value");
76 int return_value =
citrusleaf_put(_clc,
_dbName.c_str(), sets[DEFAULT_SET].c_str(), &key_obj, values, 2, &_clwp);
79 std::cerr <<
"Failure setting values " << return_value <<
std::endl;
93 std::cerr <<
"get failed - " << rv <<
std::endl;
95 return std::string (
"");
98 for (
int i=0;i< cl_v_len;i++) {
100 fprintf(stderr,
"%d: bin %s ",i,cl_v[i].bin_name);
102 switch (cl_v[i].
object.
type) {
105 fprintf(stderr,
"type string: value %s\n", cl_v[i].
object.u.str);
107 s = cl_v[i].object.u.str;
112 fprintf(stderr,
"type int: value %ld64\n",cl_v[i].
object.u.i64);
117 fprintf(stderr,
"type unknown! (%d)\n",(
int)cl_v[i].
object.type);
122 for (
int i = 0; i < cl_v_len; i++) {
125 if (cl_v)
free(cl_v);
131 char *
set, uint32_t generation, uint32_t
record_ttl,
132 cl_bin *bins,
int n_bins,
bool is_last,
void *udata) {