35 #include <drizzled/function/str/strfunc.h>
37 #include "memcached_functions.h"
40 #include <libmemcached/memcached.h>
55 if ((arg_count != 2 && arg_count != 3) ||
56 ! (key= args[0]->val_str(&value)) ||
57 ! (res= args[1]->val_str(&value)) ||
65 String *tmp_exp= args[2]->val_str(&value);;
67 expiration= (time_t)atoi(tmp_exp->c_ptr());
70 rc= memcached_set(memc, key->c_ptr(), key->length(),
71 res->c_ptr(), res->length(),
72 expiration, (uint16_t) 0);
74 if (rc != MEMCACHED_SUCCESS)
TODO: Rename this file - func.h is stupid.