void SSDBServer::reg_procs(NetworkServer *net){ REG_PROC(get, "rt"); REG_PROC(set, "wt"); }
void SSDBServer::reg_procs(NetworkServer *net){ REG_PROC(get, "rt"); REG_PROC(set, "wt"); REG_PROC(del, "wt"); REG_PROC(setx, "wt"); REG_PROC(setnx, "wt"); REG_PROC(getset, "wt"); REG_PROC(getbit, "rt"); REG_PROC(setbit, "wt"); REG_PROC(countbit, "rt"); REG_PROC(substr, "rt"); REG_PROC(getrange, "rt"); REG_PROC(strlen, "rt"); REG_PROC(bitcount, "rt"); REG_PROC(incr, "wt"); REG_PROC(decr, "wt"); REG_PROC(scan, "rt"); REG_PROC(rscan, "rt"); REG_PROC(keys, "rt"); REG_PROC(rkeys, "rt"); REG_PROC(exists, "rt"); REG_PROC(multi_exists, "rt"); REG_PROC(multi_get, "rt"); REG_PROC(multi_set, "wt"); REG_PROC(multi_del, "wt"); REG_PROC(ttl, "rt"); REG_PROC(expire, "wt"); REG_PROC(hsize, "rt"); REG_PROC(hget, "rt"); REG_PROC(hset, "wt"); REG_PROC(hdel, "wt"); REG_PROC(hincr, "wt"); REG_PROC(hdecr, "wt"); REG_PROC(hmax, "wt"); REG_PROC(hmin, "wt"); REG_PROC(hclear, "wt"); REG_PROC(hgetall, "rt"); REG_PROC(hscan, "rt"); REG_PROC(hrscan, "rt"); REG_PROC(hkeys, "rt"); REG_PROC(hvals, "rt"); REG_PROC(hlist, "rt"); REG_PROC(hrlist, "rt"); REG_PROC(hexists, "rt"); REG_PROC(multi_hexists, "rt"); REG_PROC(multi_hsize, "rt"); REG_PROC(multi_hget, "rt"); REG_PROC(multi_hset, "wt"); REG_PROC(multi_hdel, "wt"); // because zrank may be extremly slow, execute in a seperate thread REG_PROC(zrank, "rt"); REG_PROC(zrrank, "rt"); REG_PROC(zrange, "rt"); REG_PROC(zrrange, "rt"); REG_PROC(zsize, "rt"); REG_PROC(zget, "rt"); REG_PROC(zset, "wt"); REG_PROC(zdel, "wt"); REG_PROC(zincr, "wt"); REG_PROC(zdecr, "wt"); REG_PROC(zclear, "wt"); REG_PROC(zfix, "wt"); REG_PROC(zscan, "rt"); REG_PROC(zrscan, "rt"); REG_PROC(zkeys, "rt"); REG_PROC(zlist, "rt"); REG_PROC(zrlist, "rt"); REG_PROC(zcount, "rt"); REG_PROC(zsum, "rt"); REG_PROC(zavg, "rt"); REG_PROC(zremrangebyrank, "wt"); REG_PROC(zremrangebyscore, "wt"); REG_PROC(zexists, "rt"); REG_PROC(multi_zexists, "rt"); REG_PROC(multi_zsize, "rt"); REG_PROC(multi_zget, "rt"); REG_PROC(multi_zset, "wt"); REG_PROC(multi_zdel, "wt"); REG_PROC(zpop_front, "wt"); REG_PROC(zpop_back, "wt"); REG_PROC(qsize, "rt"); REG_PROC(qfront, "rt"); REG_PROC(qback, "rt"); REG_PROC(qpush, "wt"); REG_PROC(qpush_front, "wt"); REG_PROC(qpush_back, "wt"); REG_PROC(qpop, "wt"); REG_PROC(qpop_front, "wt"); REG_PROC(qpop_back, "wt"); REG_PROC(qtrim_front, "wt"); REG_PROC(qtrim_back, "wt"); REG_PROC(qfix, "wt"); REG_PROC(qclear, "wt"); REG_PROC(qlist, "rt"); REG_PROC(qrlist, "rt"); REG_PROC(qslice, "rt"); REG_PROC(qrange, "rt"); REG_PROC(qget, "rt"); REG_PROC(qset, "wt"); REG_PROC(clear_binlog, "wt"); REG_PROC(flushdb, "wt"); REG_PROC(dump, "b"); REG_PROC(sync140, "b"); REG_PROC(info, "r"); REG_PROC(version, "r"); REG_PROC(dbsize, "rt"); // doing compaction in a reader thread, because we have only one // writer thread(for performance reason); we don't want to block writes REG_PROC(compact, "rt"); REG_PROC(ignore_key_range, "r"); REG_PROC(get_key_range, "r"); REG_PROC(get_kv_range, "r"); REG_PROC(set_kv_range, "r"); REG_PROC(cluster_add_kv_node, "r"); REG_PROC(cluster_del_kv_node, "r"); REG_PROC(cluster_kv_node_list, "r"); REG_PROC(cluster_set_kv_range, "r"); REG_PROC(cluster_set_kv_status, "r"); REG_PROC(cluster_migrate_kv_data, "r"); }