33 #include <drizzled/function/str/strfunc.h>
35 #include "memcached_functions.h"
38 #include <libmemcached/memcached.h>
53 if ((arg_count != 2 && arg_count != 3) ||
54 !(key= args[0]->val_str(&value)) ||
55 !(res= args[1]->val_str(&value)) ||
62 String *tmp_exp= args[2]->val_str(&value);
63 expiration= (time_t)atoi(tmp_exp->c_ptr());
66 rc= memcached_append(memc, key->c_ptr(), key->length(),
67 res->c_ptr(), res->length(),
68 expiration, (uint16_t) 0);
70 if (rc != MEMCACHED_SUCCESS)
TODO: Rename this file - func.h is stupid.