NWNX:EE  8193.37.14
nwnx_redis_short.nss
Go to the documentation of this file.
1 #include "nwnx_redis_lib"
2 
3 
4 // Skipping sub-command: BITFIELD/{"command"=>"OVERFLOW", "type"=>"enum", "enum"=>["WRAP", "SAT", "FAIL"], "optional"=>true} - not supported yet.
5 // Skipping sub-command: CLIENT_KILL/{"command"=>"TYPE", "type"=>"enum", "enum"=>["normal", "master", "slave", "pubsub"], "optional"=>true} - not supported yet.
6 // Skipping sub-command: CLIENT_LIST/{"command"=>"TYPE", "type"=>"enum", "enum"=>["normal", "master", "replica", "pubsub"], "optional"=>true} - not supported yet.
7 // Skipping sub-command: SET/{"command"=>"expiration", "type"=>"enum", "enum"=>["EX seconds", "PX milliseconds"], "optional"=>true} - not supported yet.
8 // Skipping XCLAIM, cannot parse argument: {"name"=>"force", "enum"=>["FORCE"], "optional"=>true} - not supported yet.
9 // Skipping XCLAIM, cannot parse argument: {"name"=>"justid", "enum"=>["JUSTID"], "optional"=>true} - not supported yet.
21 int APPEND(
22  string key,
23  string value
24 );
25 
32 int AUTH(
33  string password
34 );
35 
42 int BGREWRITEAOF();
43 
50 int BGSAVE();
51 
60 int BITCOUNT(
61  string key,
62  // Redis type: integer
63  int start = 0,
64  // Redis type: integer
65  int end = 0
66 );
67 
76 int BITFIELD(
77  string key,
78  // Redis type: type
79  string get_type = "",
80  // Redis type: integer
81  int get_offset = 0,
82  // Redis type: type
83  string set_type = "",
84  // Redis type: integer
85  int set_offset = 0,
86  // Redis type: integer
87  int set_value = 0,
88  // Redis type: type
89  string incrby_type = "",
90  // Redis type: integer
91  int incrby_offset = 0,
92  // Redis type: integer
93  int incrby_increment = 0
94 );
95 
104 int BITOP(
105  string operation,
106  // Redis type: key
107  string destkey,
108  string key
109 );
110 
119 int BITPOS(
120  string key,
121  // Redis type: integer
122  int bit,
123  // Redis type: integer
124  int start = 0,
125  // Redis type: integer
126  int end = 0
127 );
128 
137 int BLPOP(
138  string key,
139  // Redis type: integer
140  int timeout
141 );
142 
151 int BRPOP(
152  string key,
153  // Redis type: integer
154  int timeout
155 );
156 
165 int BRPOPLPUSH(
166  // Redis type: key
167  string source,
168  // Redis type: key
169  string destination,
170  // Redis type: integer
171  int timeout
172 );
173 
182 int BZPOPMIN(
183  string key,
184  // Redis type: integer
185  int timeout
186 );
187 
196 int BZPOPMAX(
197  string key,
198  // Redis type: integer
199  int timeout
200 );
201 
210 int CLIENT_ID();
211 
220 int CLIENT_KILL(
221  string ip_port = "",
222  // Redis type: integer
223  int id_client_id = 0,
224  string addr_ip_port = "",
225  string skipme_yes_no = ""
226 );
227 
236 int CLIENT_LIST();
237 
246 int CLIENT_GETNAME();
247 
256 int CLIENT_PAUSE(
257  // Redis type: integer
258  int timeout
259 );
260 
271 int CLIENT_REPLY(
272  // Redis type: enum
273  string reply_mode
274 );
275 
284 int CLIENT_SETNAME(
285  string connection_name
286 );
287 
298 int CLIENT_UNBLOCK(
299  string client_id,
300  // Redis type: enum
301  string unblock_type = ""
302 );
303 
312 int CLUSTER_ADDSLOTS(
313  // Redis type: integer
314  int slot
315 );
316 
326  string node_id
327 );
328 
338  // Redis type: integer
339  int slot
340 );
341 
350 int CLUSTER_DELSLOTS(
351  // Redis type: integer
352  int slot
353 );
354 
365 int CLUSTER_FAILOVER(
366  // Redis type: enum
367  string options = ""
368 );
369 
378 int CLUSTER_FORGET(
379  string node_id
380 );
381 
391  // Redis type: integer
392  int slot,
393  // Redis type: integer
394  int count
395 );
396 
405 int CLUSTER_INFO();
406 
415 int CLUSTER_KEYSLOT(
416  string key
417 );
418 
427 int CLUSTER_MEET(
428  string ip,
429  // Redis type: integer
430  int port
431 );
432 
441 int CLUSTER_NODES();
442 
452  string node_id
453 );
454 
466 int CLUSTER_RESET(
467  // Redis type: enum
468  string reset_type = ""
469 );
470 
479 int CLUSTER_SAVECONFIG();
480 
490  // Redis type: integer
491  int config_epoch
492 );
493 
504 int CLUSTER_SETSLOT(
505  // Redis type: integer
506  int slot,
507  // Redis type: enum
508  string subcommand,
509  string node_id = ""
510 );
511 
520 int CLUSTER_SLAVES(
521  string node_id
522 );
523 
532 int CLUSTER_REPLICAS(
533  string node_id
534 );
535 
544 int CLUSTER_SLOTS();
545 
554 int COMMAND();
555 
564 int COMMAND_COUNT();
565 
574 int COMMAND_GETKEYS();
575 
584 int COMMAND_INFO(
585  string command_name
586 );
587 
594 int CONFIG_GET(
595  string parameter
596 );
597 
604 int CONFIG_REWRITE();
605 
612 int CONFIG_SET(
613  string parameter,
614  string value
615 );
616 
625 int CONFIG_RESETSTAT();
626 
633 int DBSIZE();
634 
641 int DEBUG_OBJECT(
642  string key
643 );
644 
651 int DEBUG_SEGFAULT();
652 
661 int DECR(
662  string key
663 );
664 
673 int DECRBY(
674  string key,
675  // Redis type: integer
676  int decrement
677 );
678 
690 int DEL(
691  string key
692 );
693 
700 int DISCARD();
701 
713 int DUMP(
714  string key
715 );
716 
723 int ECHO(
724  string message
725 );
726 
735 int EVAL(
736  string script,
737  // Redis type: integer
738  int numkeys,
739  string key,
740  string arg
741 );
742 
751 int EVALSHA(
752  string sha1,
753  // Redis type: integer
754  int numkeys,
755  string key,
756  string arg
757 );
758 
765 int EXEC();
766 
775 int EXISTS(
776  string key
777 );
778 
787 int EXPIRE(
788  string key,
789  // Redis type: integer
790  int seconds
791 );
792 
801 int EXPIREAT(
802  string key,
803  // Redis type: posix time
804  string timestamp
805 );
806 
815 int FLUSHALL(
816  // Redis type: enum
817  string async = ""
818 );
819 
828 int FLUSHDB(
829  // Redis type: enum
830  string async = ""
831 );
832 
842 int GEOADD(
843  string key,
844  // Redis type: double
845  float longitude,
846  // Redis type: double
847  float latitude,
848  string member
849 );
850 
860 int GEOHASH(
861  string key,
862  string member
863 );
864 
874 int GEOPOS(
875  string key,
876  string member
877 );
878 
887 int GEODIST(
888  string key,
889  string member1,
890  string member2,
891  string unit = ""
892 );
893 
914 int GEORADIUS(
915  string key,
916  // Redis type: double
917  float longitude,
918  // Redis type: double
919  float latitude,
920  // Redis type: double
921  float radius,
922  // Redis type: enum
923  string unit,
924  // Redis type: enum
925  string withcoord = "",
926  // Redis type: enum
927  string withdist = "",
928  // Redis type: enum
929  string withhash = "",
930  // Redis type: integer
931  int count_count = 0,
932  // Redis type: enum
933  string order = "",
934  // Redis type: key
935  string store_key = "",
936  // Redis type: key
937  string storedist_key = ""
938 );
939 
961  string key,
962  string member,
963  // Redis type: double
964  float radius,
965  // Redis type: enum
966  string unit,
967  // Redis type: enum
968  string withcoord = "",
969  // Redis type: enum
970  string withdist = "",
971  // Redis type: enum
972  string withhash = "",
973  // Redis type: integer
974  int count_count = 0,
975  // Redis type: enum
976  string order = "",
977  // Redis type: key
978  string store_key = "",
979  // Redis type: key
980  string storedist_key = ""
981 );
982 
991 int GET(
992  string key
993 );
994 
1003 int GETBIT(
1004  string key,
1005  // Redis type: integer
1006  int offset
1007 );
1008 
1020 int GETRANGE(
1021  string key,
1022  // Redis type: integer
1023  int start,
1024  // Redis type: integer
1025  int end
1026 );
1027 
1036 int GETSET(
1037  string key,
1038  string value
1039 );
1040 
1049 int HDEL(
1050  string key,
1051  string field
1052 );
1053 
1062 int HEXISTS(
1063  string key,
1064  string field
1065 );
1066 
1075 int HGET(
1076  string key,
1077  string field
1078 );
1079 
1088 int HGETALL(
1089  string key
1090 );
1091 
1100 int HINCRBY(
1101  string key,
1102  string field,
1103  // Redis type: integer
1104  int increment
1105 );
1106 
1115 int HINCRBYFLOAT(
1116  string key,
1117  string field,
1118  // Redis type: double
1119  float increment
1120 );
1121 
1130 int HKEYS(
1131  string key
1132 );
1133 
1142 int HLEN(
1143  string key
1144 );
1145 
1154 int HMGET(
1155  string key,
1156  string field
1157 );
1158 
1167 int HMSET(
1168  string key,
1169  string field,
1170  string value
1171 );
1172 
1181 int HSET(
1182  string key,
1183  string field,
1184  string value
1185 );
1186 
1195 int HSETNX(
1196  string key,
1197  string field,
1198  string value
1199 );
1200 
1209 int HSTRLEN(
1210  string key,
1211  string field
1212 );
1213 
1222 int HVALS(
1223  string key
1224 );
1225 
1234 int INCR(
1235  string key
1236 );
1237 
1246 int INCRBY(
1247  string key,
1248  // Redis type: integer
1249  int increment
1250 );
1251 
1260 int INCRBYFLOAT(
1261  string key,
1262  // Redis type: double
1263  float increment
1264 );
1265 
1272 int INFO(
1273  string section = ""
1274 );
1275 
1286 int KEYS(
1287  string pattern
1288 );
1289 
1296 int LASTSAVE();
1297 
1307 int LINDEX(
1308  string key,
1309  // Redis type: integer
1310  int index
1311 );
1312 
1326 int LINSERT(
1327  string key,
1328  // Redis type: enum
1329  string where,
1330  string pivot,
1331  string value
1332 );
1333 
1342 int LLEN(
1343  string key
1344 );
1345 
1354 int LPOP(
1355  string key
1356 );
1357 
1366 int LPUSH(
1367  string key,
1368  string value
1369 );
1370 
1379 int LPUSHX(
1380  string key,
1381  string value
1382 );
1383 
1394 int LRANGE(
1395  string key,
1396  // Redis type: integer
1397  int start,
1398  // Redis type: integer
1399  int stop
1400 );
1401 
1410 int LREM(
1411  string key,
1412  // Redis type: integer
1413  int count,
1414  string value
1415 );
1416 
1426 int LSET(
1427  string key,
1428  // Redis type: integer
1429  int index,
1430  string value
1431 );
1432 
1441 int LTRIM(
1442  string key,
1443  // Redis type: integer
1444  int start,
1445  // Redis type: integer
1446  int stop
1447 );
1448 
1455 int MEMORY_DOCTOR();
1456 
1463 int MEMORY_HELP();
1464 
1471 int MEMORY_MALLOC_STATS();
1472 
1479 int MEMORY_PURGE();
1480 
1487 int MEMORY_STATS();
1488 
1497 int MEMORY_USAGE(
1498  string key,
1499  // Redis type: integer
1500  int samples_count = 0
1501 );
1502 
1511 int MGET(
1512  string key
1513 );
1514 
1532 int MIGRATE(
1533  string host,
1534  string port,
1535  // Redis type: enum
1536  string key,
1537  // Redis type: integer
1538  int destination_db,
1539  // Redis type: integer
1540  int timeout,
1541  // Redis type: enum
1542  string copy = "",
1543  // Redis type: enum
1544  string replace = "",
1545  string auth_password = "",
1546  // Redis type: key
1547  string keys_key = ""
1548 );
1549 
1556 int MONITOR();
1557 
1566 int MOVE(
1567  string key,
1568  // Redis type: integer
1569  int db
1570 );
1571 
1580 int MSET(
1581  string key,
1582  string value
1583 );
1584 
1593 int MSETNX(
1594  string key,
1595  string value
1596 );
1597 
1604 int MULTI();
1605 
1614 int OBJECT(
1615  string subcommand,
1616  string arguments = ""
1617 );
1618 
1627 int PERSIST(
1628  string key
1629 );
1630 
1639 int PEXPIRE(
1640  string key,
1641  // Redis type: integer
1642  int milliseconds
1643 );
1644 
1653 int PEXPIREAT(
1654  string key,
1655  // Redis type: posix time
1656  string milliseconds_timestamp
1657 );
1658 
1667 int PFADD(
1668  string key,
1669  string element
1670 );
1671 
1682 int PFCOUNT(
1683  string key
1684 );
1685 
1694 int PFMERGE(
1695  // Redis type: key
1696  string destkey,
1697  // Redis type: key
1698  string sourcekey
1699 );
1700 
1707 int PING(
1708  string message = ""
1709 );
1710 
1719 int PSETEX(
1720  string key,
1721  // Redis type: integer
1722  int milliseconds,
1723  string value
1724 );
1725 
1737 int PUBSUB(
1738  string subcommand,
1739  string argument = ""
1740 );
1741 
1750 int PTTL(
1751  string key
1752 );
1753 
1763 int PUBLISH(
1764  string channel,
1765  string message
1766 );
1767 
1774 int QUIT();
1775 
1784 int RANDOMKEY();
1785 
1794 int READONLY();
1795 
1804 int READWRITE();
1805 
1814 int RENAME(
1815  string key,
1816  // Redis type: key
1817  string newkey
1818 );
1819 
1828 int RENAMENX(
1829  string key,
1830  // Redis type: key
1831  string newkey
1832 );
1833 
1851 int RESTORE(
1852  string key,
1853  // Redis type: integer
1854  int ttl,
1855  string serialized_value,
1856  // Redis type: enum
1857  string replace = "",
1858  // Redis type: enum
1859  string absttl = "",
1860  // Redis type: integer
1861  int idletime_seconds = 0,
1862  // Redis type: integer
1863  int freq_frequency = 0
1864 );
1865 
1872 int ROLE();
1873 
1882 int RPOP(
1883  string key
1884 );
1885 
1894 int RPOPLPUSH(
1895  // Redis type: key
1896  string source,
1897  // Redis type: key
1898  string destination
1899 );
1900 
1909 int RPUSH(
1910  string key,
1911  string value
1912 );
1913 
1922 int RPUSHX(
1923  string key,
1924  string value
1925 );
1926 
1936 int SADD(
1937  string key,
1938  string member
1939 );
1940 
1947 int SAVE();
1948 
1957 int SCARD(
1958  string key
1959 );
1960 
1971 int SCRIPT_DEBUG(
1972  // Redis type: enum
1973  string mode
1974 );
1975 
1985 int SCRIPT_EXISTS(
1986  string sha1
1987 );
1988 
1997 int SCRIPT_FLUSH();
1998 
2007 int SCRIPT_KILL();
2008 
2017 int SCRIPT_LOAD(
2018  string script
2019 );
2020 
2029 int SDIFF(
2030  string key
2031 );
2032 
2041 int SDIFFSTORE(
2042  // Redis type: key
2043  string destination,
2044  string key
2045 );
2046 
2053 int SELECT(
2054  // Redis type: integer
2055  int index
2056 );
2057 
2068 int SET(
2069  string key,
2070  string value,
2071  // Redis type: enum
2072  string condition = ""
2073 );
2074 
2083 int SETBIT(
2084  string key,
2085  // Redis type: integer
2086  int offset,
2087  string value
2088 );
2089 
2098 int SETEX(
2099  string key,
2100  // Redis type: integer
2101  int seconds,
2102  string value
2103 );
2104 
2113 int SETNX(
2114  string key,
2115  string value
2116 );
2117 
2128 int SETRANGE(
2129  string key,
2130  // Redis type: integer
2131  int offset,
2132  string value
2133 );
2134 
2143 int SHUTDOWN(
2144  // Redis type: enum
2145  string save_mode = ""
2146 );
2147 
2157 int SINTER(
2158  string key
2159 );
2160 
2170 int SINTERSTORE(
2171  // Redis type: key
2172  string destination,
2173  string key
2174 );
2175 
2184 int SISMEMBER(
2185  string key,
2186  string member
2187 );
2188 
2195 int SLAVEOF(
2196  string host,
2197  string port
2198 );
2199 
2206 int REPLICAOF(
2207  string host,
2208  string port
2209 );
2210 
2217 int SLOWLOG(
2218  string subcommand,
2219  string argument = ""
2220 );
2221 
2230 int SMEMBERS(
2231  string key
2232 );
2233 
2242 int SMOVE(
2243  // Redis type: key
2244  string source,
2245  // Redis type: key
2246  string destination,
2247  string member
2248 );
2249 
2265 int SORT(
2266  string key,
2267  // Redis type: pattern
2268  string by_pattern = "",
2269  // Redis type: integer
2270  int limit_offset = 0,
2271  // Redis type: integer
2272  int limit_count = 0,
2273  string get_pattern = "",
2274  // Redis type: enum
2275  string order = "",
2276  // Redis type: enum
2277  string sorting = "",
2278  // Redis type: key
2279  string store_destination = ""
2280 );
2281 
2290 int SPOP(
2291  string key,
2292  // Redis type: integer
2293  int count = 0
2294 );
2295 
2305 int SRANDMEMBER(
2306  string key,
2307  // Redis type: integer
2308  int count = 0
2309 );
2310 
2319 int SREM(
2320  string key,
2321  string member
2322 );
2323 
2332 int STRLEN(
2333  string key
2334 );
2335 
2344 int SUNION(
2345  string key
2346 );
2347 
2356 int SUNIONSTORE(
2357  // Redis type: key
2358  string destination,
2359  string key
2360 );
2361 
2368 int SWAPDB(
2369  // Redis type: integer
2370  int index,
2371  // Redis type: integer
2372  int index_1
2373 );
2374 
2381 int SYNC();
2382 
2391 int TIME();
2392 
2401 int TOUCH(
2402  string key
2403 );
2404 
2413 int TTL(
2414  string key
2415 );
2416 
2425 int TYPE(
2426  string key
2427 );
2428 
2439 int UNLINK(
2440  string key
2441 );
2442 
2451 int UNWATCH();
2452 
2461 int WAIT(
2462  // Redis type: integer
2463  int numreplicas,
2464  // Redis type: integer
2465  int timeout
2466 );
2467 
2476 int WATCH(
2477  string key
2478 );
2479 
2495 int ZADD(
2496  string key,
2497  // Redis type: enum
2498  string condition = "",
2499  // Redis type: enum
2500  string change = "",
2501  // Redis type: enum
2502  string increment = "",
2503  // Redis type: double
2504  float score = 0.0,
2505  string member = ""
2506 );
2507 
2516 int ZCARD(
2517  string key
2518 );
2519 
2528 int ZCOUNT(
2529  string key,
2530  // Redis type: double
2531  float min,
2532  // Redis type: double
2533  float max
2534 );
2535 
2544 int ZINCRBY(
2545  string key,
2546  // Redis type: integer
2547  int increment,
2548  string member
2549 );
2550 
2563 int ZINTERSTORE(
2564  // Redis type: key
2565  string destination,
2566  // Redis type: integer
2567  int numkeys,
2568  string key,
2569  // Redis type: integer
2570  int weights_weight = 0,
2571  // Redis type: enum
2572  string aggregate_aggregate = ""
2573 );
2574 
2583 int ZLEXCOUNT(
2584  string key,
2585  string min,
2586  string max
2587 );
2588 
2598 int ZPOPMAX(
2599  string key,
2600  // Redis type: integer
2601  int count = 0
2602 );
2603 
2613 int ZPOPMIN(
2614  string key,
2615  // Redis type: integer
2616  int count = 0
2617 );
2618 
2630 int ZRANGE(
2631  string key,
2632  // Redis type: integer
2633  int start,
2634  // Redis type: integer
2635  int stop,
2636  // Redis type: enum
2637  string withscores = ""
2638 );
2639 
2650 int ZRANGEBYLEX(
2651  string key,
2652  string min,
2653  string max,
2654  // Redis type: integer
2655  int limit_offset = 0,
2656  // Redis type: integer
2657  int limit_count = 0
2658 );
2659 
2670 int ZREVRANGEBYLEX(
2671  string key,
2672  string max,
2673  string min,
2674  // Redis type: integer
2675  int limit_offset = 0,
2676  // Redis type: integer
2677  int limit_count = 0
2678 );
2679 
2692 int ZRANGEBYSCORE(
2693  string key,
2694  // Redis type: double
2695  float min,
2696  // Redis type: double
2697  float max,
2698  // Redis type: enum
2699  string withscores = "",
2700  // Redis type: integer
2701  int limit_offset = 0,
2702  // Redis type: integer
2703  int limit_count = 0
2704 );
2705 
2714 int ZRANK(
2715  string key,
2716  string member
2717 );
2718 
2728 int ZREM(
2729  string key,
2730  string member
2731 );
2732 
2742 int ZREMRANGEBYLEX(
2743  string key,
2744  string min,
2745  string max
2746 );
2747 
2757 int ZREMRANGEBYRANK(
2758  string key,
2759  // Redis type: integer
2760  int start,
2761  // Redis type: integer
2762  int stop
2763 );
2764 
2774 int ZREMRANGEBYSCORE(
2775  string key,
2776  // Redis type: double
2777  float min,
2778  // Redis type: double
2779  float max
2780 );
2781 
2793 int ZREVRANGE(
2794  string key,
2795  // Redis type: integer
2796  int start,
2797  // Redis type: integer
2798  int stop,
2799  // Redis type: enum
2800  string withscores = ""
2801 );
2802 
2815 int ZREVRANGEBYSCORE(
2816  string key,
2817  // Redis type: double
2818  float max,
2819  // Redis type: double
2820  float min,
2821  // Redis type: enum
2822  string withscores = "",
2823  // Redis type: integer
2824  int limit_offset = 0,
2825  // Redis type: integer
2826  int limit_count = 0
2827 );
2828 
2837 int ZREVRANK(
2838  string key,
2839  string member
2840 );
2841 
2850 int ZSCORE(
2851  string key,
2852  string member
2853 );
2854 
2866 int ZUNIONSTORE(
2867  // Redis type: key
2868  string destination,
2869  // Redis type: integer
2870  int numkeys,
2871  string key,
2872  // Redis type: integer
2873  int weights_weight = 0,
2874  // Redis type: enum
2875  string aggregate_aggregate = ""
2876 );
2877 
2888 int SCAN(
2889  // Redis type: integer
2890  int cursor,
2891  // Redis type: pattern
2892  string match_pattern = "",
2893  // Redis type: integer
2894  int count_count = 0,
2895  string type_type = ""
2896 );
2897 
2908 int SSCAN(
2909  string key,
2910  // Redis type: integer
2911  int cursor,
2912  // Redis type: pattern
2913  string match_pattern = "",
2914  // Redis type: integer
2915  int count_count = 0
2916 );
2917 
2928 int HSCAN(
2929  string key,
2930  // Redis type: integer
2931  int cursor,
2932  // Redis type: pattern
2933  string match_pattern = "",
2934  // Redis type: integer
2935  int count_count = 0
2936 );
2937 
2948 int ZSCAN(
2949  string key,
2950  // Redis type: integer
2951  int cursor,
2952  // Redis type: pattern
2953  string match_pattern = "",
2954  // Redis type: integer
2955  int count_count = 0
2956 );
2957 
2970 int XINFO(
2971  // Redis type: key
2972  string consumers_key = "",
2973  string consumers_groupname = "",
2974  // Redis type: key
2975  string groups_key = "",
2976  // Redis type: key
2977  string stream_key = "",
2978  // Redis type: enum
2979  string help = ""
2980 );
2981 
2990 int XADD(
2991  string key,
2992  string ID,
2993  // Redis type: value
2994  string field,
2995  string str
2996 );
2997 
3012 int XTRIM(
3013  string key,
3014  // Redis type: enum
3015  string strategy,
3016  // Redis type: enum
3017  string approx = "",
3018  // Redis type: integer
3019  int count = 0
3020 );
3021 
3031 int XDEL(
3032  string key,
3033  string ID
3034 );
3035 
3046 int XRANGE(
3047  string key,
3048  string start,
3049  string end,
3050  // Redis type: integer
3051  int count_count = 0
3052 );
3053 
3064 int XREVRANGE(
3065  string key,
3066  string end,
3067  string start,
3068  // Redis type: integer
3069  int count_count = 0
3070 );
3071 
3080 int XLEN(
3081  string key
3082 );
3083 
3097 int XREAD(
3098  // Redis type: integer
3099  int count_count = 0,
3100  // Redis type: integer
3101  int block_milliseconds = 0,
3102  // Redis type: enum
3103  string streams = "",
3104  string key = "",
3105  string ID = ""
3106 );
3107 
3118 int XGROUP(
3119  // Redis type: key
3120  string create_key = "",
3121  string create_groupname = "",
3122  string create_id_or__ = "",
3123  // Redis type: key
3124  string setid_key = "",
3125  string setid_groupname = "",
3126  string setid_id_or__ = "",
3127  // Redis type: key
3128  string destroy_key = "",
3129  string destroy_groupname = "",
3130  // Redis type: key
3131  string delconsumer_key = "",
3132  string delconsumer_groupname = "",
3133  string delconsumer_consumername = ""
3134 );
3135 
3152 int XREADGROUP(
3153  string group_group,
3154  string group_consumer,
3155  // Redis type: integer
3156  int count_count = 0,
3157  // Redis type: integer
3158  int block_milliseconds = 0,
3159  // Redis type: enum
3160  string noack = "",
3161  // Redis type: enum
3162  string streams = "",
3163  string key = "",
3164  string ID = ""
3165 );
3166 
3175 int XACK(
3176  string key,
3177  string group,
3178  string ID
3179 );
3180 
3190 int XCLAIM(
3191  string key,
3192  string group,
3193  string consumer,
3194  string min_idle_time,
3195  string ID,
3196  // Redis type: integer
3197  int idle_ms = 0,
3198  // Redis type: integer
3199  int time_ms_unix_time = 0,
3200  // Redis type: integer
3201  int retrycount_count = 0
3202 );
3203 
3215 int XPENDING(
3216  string key,
3217  string group,
3218  string start = "",
3219  string end = "",
3220  // Redis type: integer
3221  int count = 0,
3222  string consumer = ""
3223 );
3224 
3225 
3226 
3227 // Implementation below
3229  string key,
3230  string value
3231 ) {
3232  NWNXPushString("APPEND");
3233  NWNXPushString(key);
3234  NWNXPushString(value);
3235  NWNXCall("NWNX_Redis", "Deferred");
3236  return NWNXPopInt();
3237 }
3238 
3239 int AUTH(
3240  string password
3241 ) {
3242  NWNXPushString("AUTH");
3243  NWNXPushString(password);
3244  NWNXCall("NWNX_Redis", "Deferred");
3245  return NWNXPopInt();
3246 }
3247 
3249  NWNXPushString("BGREWRITEAOF");
3250  NWNXCall("NWNX_Redis", "Deferred");
3251  return NWNXPopInt();
3252 }
3253 
3254 int BGSAVE() {
3255  NWNXPushString("BGSAVE");
3256  NWNXCall("NWNX_Redis", "Deferred");
3257  return NWNXPopInt();
3258 }
3259 
3261  string key,
3262  // Redis type: integer
3263  int start = 0,
3264  // Redis type: integer
3265  int end = 0
3266 ) {
3267  NWNXPushString("BITCOUNT");
3268  NWNXPushString(key);
3269  if (start != 0) NWNXPushString(IntToString(start));
3270  if (end != 0) NWNXPushString(IntToString(end));
3271  NWNXCall("NWNX_Redis", "Deferred");
3272  return NWNXPopInt();
3273 }
3274 
3276  string key,
3277  // Redis type: type
3278  string get_type = "",
3279  // Redis type: integer
3280  int get_offset = 0,
3281  // Redis type: type
3282  string set_type = "",
3283  // Redis type: integer
3284  int set_offset = 0,
3285  // Redis type: integer
3286  int set_value = 0,
3287  // Redis type: type
3288  string incrby_type = "",
3289  // Redis type: integer
3290  int incrby_offset = 0,
3291  // Redis type: integer
3292  int incrby_increment = 0
3293 ) {
3294  NWNXPushString("BITFIELD");
3295  NWNXPushString(key);
3296  if (get_type != "") NWNXPushString(get_type);
3297  if (get_offset != 0) NWNXPushString(IntToString(get_offset));
3298  if (set_type != "") NWNXPushString(set_type);
3299  if (set_offset != 0) NWNXPushString(IntToString(set_offset));
3300  if (set_value != 0) NWNXPushString(IntToString(set_value));
3301  if (incrby_type != "") NWNXPushString(incrby_type);
3302  if (incrby_offset != 0) NWNXPushString(IntToString(incrby_offset));
3303  if (incrby_increment != 0) NWNXPushString(IntToString(incrby_increment));
3304  NWNXCall("NWNX_Redis", "Deferred");
3305  return NWNXPopInt();
3306 }
3307 
3308 int BITOP(
3309  string operation,
3310  // Redis type: key
3311  string destkey,
3312  string key
3313 ) {
3314  NWNXPushString("BITOP");
3315  NWNXPushString(operation);
3316  NWNXPushString(destkey);
3317  NWNXPushString(key);
3318  NWNXCall("NWNX_Redis", "Deferred");
3319  return NWNXPopInt();
3320 }
3321 
3323  string key,
3324  // Redis type: integer
3325  int bit,
3326  // Redis type: integer
3327  int start = 0,
3328  // Redis type: integer
3329  int end = 0
3330 ) {
3331  NWNXPushString("BITPOS");
3332  NWNXPushString(key);
3333  NWNXPushString(IntToString(bit));
3334  if (start != 0) NWNXPushString(IntToString(start));
3335  if (end != 0) NWNXPushString(IntToString(end));
3336  NWNXCall("NWNX_Redis", "Deferred");
3337  return NWNXPopInt();
3338 }
3339 
3340 int BLPOP(
3341  string key,
3342  // Redis type: integer
3343  int timeout
3344 ) {
3345  NWNXPushString("BLPOP");
3346  NWNXPushString(key);
3347  NWNXPushString(IntToString(timeout));
3348  NWNXCall("NWNX_Redis", "Deferred");
3349  return NWNXPopInt();
3350 }
3351 
3352 int BRPOP(
3353  string key,
3354  // Redis type: integer
3355  int timeout
3356 ) {
3357  NWNXPushString("BRPOP");
3358  NWNXPushString(key);
3359  NWNXPushString(IntToString(timeout));
3360  NWNXCall("NWNX_Redis", "Deferred");
3361  return NWNXPopInt();
3362 }
3363 
3365  // Redis type: key
3366  string source,
3367  // Redis type: key
3368  string destination,
3369  // Redis type: integer
3370  int timeout
3371 ) {
3372  NWNXPushString("BRPOPLPUSH");
3373  NWNXPushString(source);
3374  NWNXPushString(destination);
3375  NWNXPushString(IntToString(timeout));
3376  NWNXCall("NWNX_Redis", "Deferred");
3377  return NWNXPopInt();
3378 }
3379 
3381  string key,
3382  // Redis type: integer
3383  int timeout
3384 ) {
3385  NWNXPushString("BZPOPMIN");
3386  NWNXPushString(key);
3387  NWNXPushString(IntToString(timeout));
3388  NWNXCall("NWNX_Redis", "Deferred");
3389  return NWNXPopInt();
3390 }
3391 
3393  string key,
3394  // Redis type: integer
3395  int timeout
3396 ) {
3397  NWNXPushString("BZPOPMAX");
3398  NWNXPushString(key);
3399  NWNXPushString(IntToString(timeout));
3400  NWNXCall("NWNX_Redis", "Deferred");
3401  return NWNXPopInt();
3402 }
3403 
3404 int CLIENT_ID() {
3405  NWNXPushString("CLIENT_ID");
3406  NWNXCall("NWNX_Redis", "Deferred");
3407  return NWNXPopInt();
3408 }
3409 
3411  string ip_port = "",
3412  // Redis type: integer
3413  int id_client_id = 0,
3414  string addr_ip_port = "",
3415  string skipme_yes_no = ""
3416 ) {
3417  NWNXPushString("CLIENT_KILL");
3418  if (ip_port != "") NWNXPushString(ip_port);
3419  if (id_client_id != 0) NWNXPushString(IntToString(id_client_id));
3420  if (addr_ip_port != "") NWNXPushString(addr_ip_port);
3421  if (skipme_yes_no != "") NWNXPushString(skipme_yes_no);
3422  NWNXCall("NWNX_Redis", "Deferred");
3423  return NWNXPopInt();
3424 }
3425 
3427  NWNXPushString("CLIENT_LIST");
3428  NWNXCall("NWNX_Redis", "Deferred");
3429  return NWNXPopInt();
3430 }
3431 
3433  NWNXPushString("CLIENT_GETNAME");
3434  NWNXCall("NWNX_Redis", "Deferred");
3435  return NWNXPopInt();
3436 }
3437 
3439  // Redis type: integer
3440  int timeout
3441 ) {
3442  NWNXPushString("CLIENT_PAUSE");
3443  NWNXPushString(IntToString(timeout));
3444  NWNXCall("NWNX_Redis", "Deferred");
3445  return NWNXPopInt();
3446 }
3447 
3449  // Redis type: enum
3450  string reply_mode
3451 ) {
3452  NWNXPushString("CLIENT_REPLY");
3453  NWNXPushString(reply_mode);
3454  NWNXCall("NWNX_Redis", "Deferred");
3455  return NWNXPopInt();
3456 }
3457 
3459  string connection_name
3460 ) {
3461  NWNXPushString("CLIENT_SETNAME");
3462  NWNXPushString(connection_name);
3463  NWNXCall("NWNX_Redis", "Deferred");
3464  return NWNXPopInt();
3465 }
3466 
3468  string client_id,
3469  // Redis type: enum
3470  string unblock_type = ""
3471 ) {
3472  NWNXPushString("CLIENT_UNBLOCK");
3473  NWNXPushString(client_id);
3474  if (unblock_type != "") NWNXPushString(unblock_type);
3475  NWNXCall("NWNX_Redis", "Deferred");
3476  return NWNXPopInt();
3477 }
3478 
3480  // Redis type: integer
3481  int slot
3482 ) {
3483  NWNXPushString("CLUSTER_ADDSLOTS");
3484  NWNXPushString(IntToString(slot));
3485  NWNXCall("NWNX_Redis", "Deferred");
3486  return NWNXPopInt();
3487 }
3488 
3490  string node_id
3491 ) {
3492  NWNXPushString("CLUSTER_COUNT_FAILURE_REPORTS");
3493  NWNXPushString(node_id);
3494  NWNXCall("NWNX_Redis", "Deferred");
3495  return NWNXPopInt();
3496 }
3497 
3499  // Redis type: integer
3500  int slot
3501 ) {
3502  NWNXPushString("CLUSTER_COUNTKEYSINSLOT");
3503  NWNXPushString(IntToString(slot));
3504  NWNXCall("NWNX_Redis", "Deferred");
3505  return NWNXPopInt();
3506 }
3507 
3509  // Redis type: integer
3510  int slot
3511 ) {
3512  NWNXPushString("CLUSTER_DELSLOTS");
3513  NWNXPushString(IntToString(slot));
3514  NWNXCall("NWNX_Redis", "Deferred");
3515  return NWNXPopInt();
3516 }
3517 
3519  // Redis type: enum
3520  string options = ""
3521 ) {
3522  NWNXPushString("CLUSTER_FAILOVER");
3523  if (options != "") NWNXPushString(options);
3524  NWNXCall("NWNX_Redis", "Deferred");
3525  return NWNXPopInt();
3526 }
3527 
3529  string node_id
3530 ) {
3531  NWNXPushString("CLUSTER_FORGET");
3532  NWNXPushString(node_id);
3533  NWNXCall("NWNX_Redis", "Deferred");
3534  return NWNXPopInt();
3535 }
3536 
3538  // Redis type: integer
3539  int slot,
3540  // Redis type: integer
3541  int count
3542 ) {
3543  NWNXPushString("CLUSTER_GETKEYSINSLOT");
3544  NWNXPushString(IntToString(slot));
3545  NWNXPushString(IntToString(count));
3546  NWNXCall("NWNX_Redis", "Deferred");
3547  return NWNXPopInt();
3548 }
3549 
3551  NWNXPushString("CLUSTER_INFO");
3552  NWNXCall("NWNX_Redis", "Deferred");
3553  return NWNXPopInt();
3554 }
3555 
3557  string key
3558 ) {
3559  NWNXPushString("CLUSTER_KEYSLOT");
3560  NWNXPushString(key);
3561  NWNXCall("NWNX_Redis", "Deferred");
3562  return NWNXPopInt();
3563 }
3564 
3566  string ip,
3567  // Redis type: integer
3568  int port
3569 ) {
3570  NWNXPushString("CLUSTER_MEET");
3571  NWNXPushString(ip);
3572  NWNXPushString(IntToString(port));
3573  NWNXCall("NWNX_Redis", "Deferred");
3574  return NWNXPopInt();
3575 }
3576 
3578  NWNXPushString("CLUSTER_NODES");
3579  NWNXCall("NWNX_Redis", "Deferred");
3580  return NWNXPopInt();
3581 }
3582 
3584  string node_id
3585 ) {
3586  NWNXPushString("CLUSTER_REPLICATE");
3587  NWNXPushString(node_id);
3588  NWNXCall("NWNX_Redis", "Deferred");
3589  return NWNXPopInt();
3590 }
3591 
3593  // Redis type: enum
3594  string reset_type = ""
3595 ) {
3596  NWNXPushString("CLUSTER_RESET");
3597  if (reset_type != "") NWNXPushString(reset_type);
3598  NWNXCall("NWNX_Redis", "Deferred");
3599  return NWNXPopInt();
3600 }
3601 
3603  NWNXPushString("CLUSTER_SAVECONFIG");
3604  NWNXCall("NWNX_Redis", "Deferred");
3605  return NWNXPopInt();
3606 }
3607 
3609  // Redis type: integer
3610  int config_epoch
3611 ) {
3612  NWNXPushString("CLUSTER_SET_CONFIG_EPOCH");
3613  NWNXPushString(IntToString(config_epoch));
3614  NWNXCall("NWNX_Redis", "Deferred");
3615  return NWNXPopInt();
3616 }
3617 
3619  // Redis type: integer
3620  int slot,
3621  // Redis type: enum
3622  string subcommand,
3623  string node_id = ""
3624 ) {
3625  NWNXPushString("CLUSTER_SETSLOT");
3626  NWNXPushString(IntToString(slot));
3627  NWNXPushString(subcommand);
3628  if (node_id != "") NWNXPushString(node_id);
3629  NWNXCall("NWNX_Redis", "Deferred");
3630  return NWNXPopInt();
3631 }
3632 
3634  string node_id
3635 ) {
3636  NWNXPushString("CLUSTER_SLAVES");
3637  NWNXPushString(node_id);
3638  NWNXCall("NWNX_Redis", "Deferred");
3639  return NWNXPopInt();
3640 }
3641 
3643  string node_id
3644 ) {
3645  NWNXPushString("CLUSTER_REPLICAS");
3646  NWNXPushString(node_id);
3647  NWNXCall("NWNX_Redis", "Deferred");
3648  return NWNXPopInt();
3649 }
3650 
3652  NWNXPushString("CLUSTER_SLOTS");
3653  NWNXCall("NWNX_Redis", "Deferred");
3654  return NWNXPopInt();
3655 }
3656 
3657 int COMMAND() {
3658  NWNXPushString("COMMAND");
3659  NWNXCall("NWNX_Redis", "Deferred");
3660  return NWNXPopInt();
3661 }
3662 
3664  NWNXPushString("COMMAND_COUNT");
3665  NWNXCall("NWNX_Redis", "Deferred");
3666  return NWNXPopInt();
3667 }
3668 
3670  NWNXPushString("COMMAND_GETKEYS");
3671  NWNXCall("NWNX_Redis", "Deferred");
3672  return NWNXPopInt();
3673 }
3674 
3676  string command_name
3677 ) {
3678  NWNXPushString("COMMAND_INFO");
3679  NWNXPushString(command_name);
3680  NWNXCall("NWNX_Redis", "Deferred");
3681  return NWNXPopInt();
3682 }
3683 
3685  string parameter
3686 ) {
3687  NWNXPushString("CONFIG_GET");
3688  NWNXPushString(parameter);
3689  NWNXCall("NWNX_Redis", "Deferred");
3690  return NWNXPopInt();
3691 }
3692 
3694  NWNXPushString("CONFIG_REWRITE");
3695  NWNXCall("NWNX_Redis", "Deferred");
3696  return NWNXPopInt();
3697 }
3698 
3700  string parameter,
3701  string value
3702 ) {
3703  NWNXPushString("CONFIG_SET");
3704  NWNXPushString(parameter);
3705  NWNXPushString(value);
3706  NWNXCall("NWNX_Redis", "Deferred");
3707  return NWNXPopInt();
3708 }
3709 
3711  NWNXPushString("CONFIG_RESETSTAT");
3712  NWNXCall("NWNX_Redis", "Deferred");
3713  return NWNXPopInt();
3714 }
3715 
3716 int DBSIZE() {
3717  NWNXPushString("DBSIZE");
3718  NWNXCall("NWNX_Redis", "Deferred");
3719  return NWNXPopInt();
3720 }
3721 
3723  string key
3724 ) {
3725  NWNXPushString("DEBUG_OBJECT");
3726  NWNXPushString(key);
3727  NWNXCall("NWNX_Redis", "Deferred");
3728  return NWNXPopInt();
3729 }
3730 
3732  NWNXPushString("DEBUG_SEGFAULT");
3733  NWNXCall("NWNX_Redis", "Deferred");
3734  return NWNXPopInt();
3735 }
3736 
3737 int DECR(
3738  string key
3739 ) {
3740  NWNXPushString("DECR");
3741  NWNXPushString(key);
3742  NWNXCall("NWNX_Redis", "Deferred");
3743  return NWNXPopInt();
3744 }
3745 
3747  string key,
3748  // Redis type: integer
3749  int decrement
3750 ) {
3751  NWNXPushString("DECRBY");
3752  NWNXPushString(key);
3753  NWNXPushString(IntToString(decrement));
3754  NWNXCall("NWNX_Redis", "Deferred");
3755  return NWNXPopInt();
3756 }
3757 
3758 int DEL(
3759  string key
3760 ) {
3761  NWNXPushString("DEL");
3762  NWNXPushString(key);
3763  NWNXCall("NWNX_Redis", "Deferred");
3764  return NWNXPopInt();
3765 }
3766 
3767 int DISCARD() {
3768  NWNXPushString("DISCARD");
3769  NWNXCall("NWNX_Redis", "Deferred");
3770  return NWNXPopInt();
3771 }
3772 
3773 int DUMP(
3774  string key
3775 ) {
3776  NWNXPushString("DUMP");
3777  NWNXPushString(key);
3778  NWNXCall("NWNX_Redis", "Deferred");
3779  return NWNXPopInt();
3780 }
3781 
3782 int ECHO(
3783  string message
3784 ) {
3785  NWNXPushString("ECHO");
3786  NWNXPushString(message);
3787  NWNXCall("NWNX_Redis", "Deferred");
3788  return NWNXPopInt();
3789 }
3790 
3791 int EVAL(
3792  string script,
3793  // Redis type: integer
3794  int numkeys,
3795  string key,
3796  string arg
3797 ) {
3798  NWNXPushString("EVAL");
3799  NWNXPushString(script);
3800  NWNXPushString(IntToString(numkeys));
3801  NWNXPushString(key);
3802  NWNXPushString(arg);
3803  NWNXCall("NWNX_Redis", "Deferred");
3804  return NWNXPopInt();
3805 }
3806 
3808  string sha1,
3809  // Redis type: integer
3810  int numkeys,
3811  string key,
3812  string arg
3813 ) {
3814  NWNXPushString("EVALSHA");
3815  NWNXPushString(sha1);
3816  NWNXPushString(IntToString(numkeys));
3817  NWNXPushString(key);
3818  NWNXPushString(arg);
3819  NWNXCall("NWNX_Redis", "Deferred");
3820  return NWNXPopInt();
3821 }
3822 
3823 int EXEC() {
3824  NWNXPushString("EXEC");
3825  NWNXCall("NWNX_Redis", "Deferred");
3826  return NWNXPopInt();
3827 }
3828 
3830  string key
3831 ) {
3832  NWNXPushString("EXISTS");
3833  NWNXPushString(key);
3834  NWNXCall("NWNX_Redis", "Deferred");
3835  return NWNXPopInt();
3836 }
3837 
3839  string key,
3840  // Redis type: integer
3841  int seconds
3842 ) {
3843  NWNXPushString("EXPIRE");
3844  NWNXPushString(key);
3845  NWNXPushString(IntToString(seconds));
3846  NWNXCall("NWNX_Redis", "Deferred");
3847  return NWNXPopInt();
3848 }
3849 
3851  string key,
3852  // Redis type: posix time
3853  string timestamp
3854 ) {
3855  NWNXPushString("EXPIREAT");
3856  NWNXPushString(key);
3857  NWNXPushString(timestamp);
3858  NWNXCall("NWNX_Redis", "Deferred");
3859  return NWNXPopInt();
3860 }
3861 
3863  // Redis type: enum
3864  string async = ""
3865 ) {
3866  NWNXPushString("FLUSHALL");
3867  if (async != "") NWNXPushString(async);
3868  NWNXCall("NWNX_Redis", "Deferred");
3869  return NWNXPopInt();
3870 }
3871 
3873  // Redis type: enum
3874  string async = ""
3875 ) {
3876  NWNXPushString("FLUSHDB");
3877  if (async != "") NWNXPushString(async);
3878  NWNXCall("NWNX_Redis", "Deferred");
3879  return NWNXPopInt();
3880 }
3881 
3883  string key,
3884  // Redis type: double
3885  float longitude,
3886  // Redis type: double
3887  float latitude,
3888  string member
3889 ) {
3890  NWNXPushString("GEOADD");
3891  NWNXPushString(key);
3892  NWNXPushString(FloatToString(longitude, 0));
3893  NWNXPushString(FloatToString(latitude, 0));
3894  NWNXPushString(member);
3895  NWNXCall("NWNX_Redis", "Deferred");
3896  return NWNXPopInt();
3897 }
3898 
3900  string key,
3901  string member
3902 ) {
3903  NWNXPushString("GEOHASH");
3904  NWNXPushString(key);
3905  NWNXPushString(member);
3906  NWNXCall("NWNX_Redis", "Deferred");
3907  return NWNXPopInt();
3908 }
3909 
3911  string key,
3912  string member
3913 ) {
3914  NWNXPushString("GEOPOS");
3915  NWNXPushString(key);
3916  NWNXPushString(member);
3917  NWNXCall("NWNX_Redis", "Deferred");
3918  return NWNXPopInt();
3919 }
3920 
3922  string key,
3923  string member1,
3924  string member2,
3925  string unit = ""
3926 ) {
3927  NWNXPushString("GEODIST");
3928  NWNXPushString(key);
3929  NWNXPushString(member1);
3930  NWNXPushString(member2);
3931  if (unit != "") NWNXPushString(unit);
3932  NWNXCall("NWNX_Redis", "Deferred");
3933  return NWNXPopInt();
3934 }
3935 
3937  string key,
3938  // Redis type: double
3939  float longitude,
3940  // Redis type: double
3941  float latitude,
3942  // Redis type: double
3943  float radius,
3944  // Redis type: enum
3945  string unit,
3946  // Redis type: enum
3947  string withcoord = "",
3948  // Redis type: enum
3949  string withdist = "",
3950  // Redis type: enum
3951  string withhash = "",
3952  // Redis type: integer
3953  int count_count = 0,
3954  // Redis type: enum
3955  string order = "",
3956  // Redis type: key
3957  string store_key = "",
3958  // Redis type: key
3959  string storedist_key = ""
3960 ) {
3961  NWNXPushString("GEORADIUS");
3962  NWNXPushString(key);
3963  NWNXPushString(FloatToString(longitude, 0));
3964  NWNXPushString(FloatToString(latitude, 0));
3965  NWNXPushString(FloatToString(radius, 0));
3966  NWNXPushString(unit);
3967  if (withcoord != "") NWNXPushString(withcoord);
3968  if (withdist != "") NWNXPushString(withdist);
3969  if (withhash != "") NWNXPushString(withhash);
3970  if (count_count != 0) NWNXPushString(IntToString(count_count));
3971  if (order != "") NWNXPushString(order);
3972  if (store_key != "") NWNXPushString(store_key);
3973  if (storedist_key != "") NWNXPushString(storedist_key);
3974  NWNXCall("NWNX_Redis", "Deferred");
3975  return NWNXPopInt();
3976 }
3977 
3979  string key,
3980  string member,
3981  // Redis type: double
3982  float radius,
3983  // Redis type: enum
3984  string unit,
3985  // Redis type: enum
3986  string withcoord = "",
3987  // Redis type: enum
3988  string withdist = "",
3989  // Redis type: enum
3990  string withhash = "",
3991  // Redis type: integer
3992  int count_count = 0,
3993  // Redis type: enum
3994  string order = "",
3995  // Redis type: key
3996  string store_key = "",
3997  // Redis type: key
3998  string storedist_key = ""
3999 ) {
4000  NWNXPushString("GEORADIUSBYMEMBER");
4001  NWNXPushString(key);
4002  NWNXPushString(member);
4003  NWNXPushString(FloatToString(radius, 0));
4004  NWNXPushString(unit);
4005  if (withcoord != "") NWNXPushString(withcoord);
4006  if (withdist != "") NWNXPushString(withdist);
4007  if (withhash != "") NWNXPushString(withhash);
4008  if (count_count != 0) NWNXPushString(IntToString(count_count));
4009  if (order != "") NWNXPushString(order);
4010  if (store_key != "") NWNXPushString(store_key);
4011  if (storedist_key != "") NWNXPushString(storedist_key);
4012  NWNXCall("NWNX_Redis", "Deferred");
4013  return NWNXPopInt();
4014 }
4015 
4016 int GET(
4017  string key
4018 ) {
4019  NWNXPushString("GET");
4020  NWNXPushString(key);
4021  NWNXCall("NWNX_Redis", "Deferred");
4022  return NWNXPopInt();
4023 }
4024 
4026  string key,
4027  // Redis type: integer
4028  int offset
4029 ) {
4030  NWNXPushString("GETBIT");
4031  NWNXPushString(key);
4032  NWNXPushString(IntToString(offset));
4033  NWNXCall("NWNX_Redis", "Deferred");
4034  return NWNXPopInt();
4035 }
4036 
4038  string key,
4039  // Redis type: integer
4040  int start,
4041  // Redis type: integer
4042  int end
4043 ) {
4044  NWNXPushString("GETRANGE");
4045  NWNXPushString(key);
4046  NWNXPushString(IntToString(start));
4047  NWNXPushString(IntToString(end));
4048  NWNXCall("NWNX_Redis", "Deferred");
4049  return NWNXPopInt();
4050 }
4051 
4053  string key,
4054  string value
4055 ) {
4056  NWNXPushString("GETSET");
4057  NWNXPushString(key);
4058  NWNXPushString(value);
4059  NWNXCall("NWNX_Redis", "Deferred");
4060  return NWNXPopInt();
4061 }
4062 
4063 int HDEL(
4064  string key,
4065  string field
4066 ) {
4067  NWNXPushString("HDEL");
4068  NWNXPushString(key);
4069  NWNXPushString(field);
4070  NWNXCall("NWNX_Redis", "Deferred");
4071  return NWNXPopInt();
4072 }
4073 
4075  string key,
4076  string field
4077 ) {
4078  NWNXPushString("HEXISTS");
4079  NWNXPushString(key);
4080  NWNXPushString(field);
4081  NWNXCall("NWNX_Redis", "Deferred");
4082  return NWNXPopInt();
4083 }
4084 
4085 int HGET(
4086  string key,
4087  string field
4088 ) {
4089  NWNXPushString("HGET");
4090  NWNXPushString(key);
4091  NWNXPushString(field);
4092  NWNXCall("NWNX_Redis", "Deferred");
4093  return NWNXPopInt();
4094 }
4095 
4097  string key
4098 ) {
4099  NWNXPushString("HGETALL");
4100  NWNXPushString(key);
4101  NWNXCall("NWNX_Redis", "Deferred");
4102  return NWNXPopInt();
4103 }
4104 
4106  string key,
4107  string field,
4108  // Redis type: integer
4109  int increment
4110 ) {
4111  NWNXPushString("HINCRBY");
4112  NWNXPushString(key);
4113  NWNXPushString(field);
4114  NWNXPushString(IntToString(increment));
4115  NWNXCall("NWNX_Redis", "Deferred");
4116  return NWNXPopInt();
4117 }
4118 
4120  string key,
4121  string field,
4122  // Redis type: double
4123  float increment
4124 ) {
4125  NWNXPushString("HINCRBYFLOAT");
4126  NWNXPushString(key);
4127  NWNXPushString(field);
4128  NWNXPushString(FloatToString(increment, 0));
4129  NWNXCall("NWNX_Redis", "Deferred");
4130  return NWNXPopInt();
4131 }
4132 
4133 int HKEYS(
4134  string key
4135 ) {
4136  NWNXPushString("HKEYS");
4137  NWNXPushString(key);
4138  NWNXCall("NWNX_Redis", "Deferred");
4139  return NWNXPopInt();
4140 }
4141 
4142 int HLEN(
4143  string key
4144 ) {
4145  NWNXPushString("HLEN");
4146  NWNXPushString(key);
4147  NWNXCall("NWNX_Redis", "Deferred");
4148  return NWNXPopInt();
4149 }
4150 
4151 int HMGET(
4152  string key,
4153  string field
4154 ) {
4155  NWNXPushString("HMGET");
4156  NWNXPushString(key);
4157  NWNXPushString(field);
4158  NWNXCall("NWNX_Redis", "Deferred");
4159  return NWNXPopInt();
4160 }
4161 
4162 int HMSET(
4163  string key,
4164  string field,
4165  string value
4166 ) {
4167  NWNXPushString("HMSET");
4168  NWNXPushString(key);
4169  NWNXPushString(field);
4170  NWNXPushString(value);
4171  NWNXCall("NWNX_Redis", "Deferred");
4172  return NWNXPopInt();
4173 }
4174 
4175 int HSET(
4176  string key,
4177  string field,
4178  string value
4179 ) {
4180  NWNXPushString("HSET");
4181  NWNXPushString(key);
4182  NWNXPushString(field);
4183  NWNXPushString(value);
4184  NWNXCall("NWNX_Redis", "Deferred");
4185  return NWNXPopInt();
4186 }
4187 
4189  string key,
4190  string field,
4191  string value
4192 ) {
4193  NWNXPushString("HSETNX");
4194  NWNXPushString(key);
4195  NWNXPushString(field);
4196  NWNXPushString(value);
4197  NWNXCall("NWNX_Redis", "Deferred");
4198  return NWNXPopInt();
4199 }
4200 
4202  string key,
4203  string field
4204 ) {
4205  NWNXPushString("HSTRLEN");
4206  NWNXPushString(key);
4207  NWNXPushString(field);
4208  NWNXCall("NWNX_Redis", "Deferred");
4209  return NWNXPopInt();
4210 }
4211 
4212 int HVALS(
4213  string key
4214 ) {
4215  NWNXPushString("HVALS");
4216  NWNXPushString(key);
4217  NWNXCall("NWNX_Redis", "Deferred");
4218  return NWNXPopInt();
4219 }
4220 
4221 int INCR(
4222  string key
4223 ) {
4224  NWNXPushString("INCR");
4225  NWNXPushString(key);
4226  NWNXCall("NWNX_Redis", "Deferred");
4227  return NWNXPopInt();
4228 }
4229 
4231  string key,
4232  // Redis type: integer
4233  int increment
4234 ) {
4235  NWNXPushString("INCRBY");
4236  NWNXPushString(key);
4237  NWNXPushString(IntToString(increment));
4238  NWNXCall("NWNX_Redis", "Deferred");
4239  return NWNXPopInt();
4240 }
4241 
4243  string key,
4244  // Redis type: double
4245  float increment
4246 ) {
4247  NWNXPushString("INCRBYFLOAT");
4248  NWNXPushString(key);
4249  NWNXPushString(FloatToString(increment, 0));
4250  NWNXCall("NWNX_Redis", "Deferred");
4251  return NWNXPopInt();
4252 }
4253 
4254 int INFO(
4255  string section = ""
4256 ) {
4257  NWNXPushString("INFO");
4258  if (section != "") NWNXPushString(section);
4259  NWNXCall("NWNX_Redis", "Deferred");
4260  return NWNXPopInt();
4261 }
4262 
4263 int KEYS(
4264  string pattern
4265 ) {
4266  NWNXPushString("KEYS");
4267  NWNXPushString(pattern);
4268  NWNXCall("NWNX_Redis", "Deferred");
4269  return NWNXPopInt();
4270 }
4271 
4272 int LASTSAVE() {
4273  NWNXPushString("LASTSAVE");
4274  NWNXCall("NWNX_Redis", "Deferred");
4275  return NWNXPopInt();
4276 }
4277 
4279  string key,
4280  // Redis type: integer
4281  int index
4282 ) {
4283  NWNXPushString("LINDEX");
4284  NWNXPushString(key);
4285  NWNXPushString(IntToString(index));
4286  NWNXCall("NWNX_Redis", "Deferred");
4287  return NWNXPopInt();
4288 }
4289 
4291  string key,
4292  // Redis type: enum
4293  string where,
4294  string pivot,
4295  string value
4296 ) {
4297  NWNXPushString("LINSERT");
4298  NWNXPushString(key);
4299  NWNXPushString(where);
4300  NWNXPushString(pivot);
4301  NWNXPushString(value);
4302  NWNXCall("NWNX_Redis", "Deferred");
4303  return NWNXPopInt();
4304 }
4305 
4306 int LLEN(
4307  string key
4308 ) {
4309  NWNXPushString("LLEN");
4310  NWNXPushString(key);
4311  NWNXCall("NWNX_Redis", "Deferred");
4312  return NWNXPopInt();
4313 }
4314 
4315 int LPOP(
4316  string key
4317 ) {
4318  NWNXPushString("LPOP");
4319  NWNXPushString(key);
4320  NWNXCall("NWNX_Redis", "Deferred");
4321  return NWNXPopInt();
4322 }
4323 
4324 int LPUSH(
4325  string key,
4326  string value
4327 ) {
4328  NWNXPushString("LPUSH");
4329  NWNXPushString(key);
4330  NWNXPushString(value);
4331  NWNXCall("NWNX_Redis", "Deferred");
4332  return NWNXPopInt();
4333 }
4334 
4336  string key,
4337  string value
4338 ) {
4339  NWNXPushString("LPUSHX");
4340  NWNXPushString(key);
4341  NWNXPushString(value);
4342  NWNXCall("NWNX_Redis", "Deferred");
4343  return NWNXPopInt();
4344 }
4345 
4347  string key,
4348  // Redis type: integer
4349  int start,
4350  // Redis type: integer
4351  int stop
4352 ) {
4353  NWNXPushString("LRANGE");
4354  NWNXPushString(key);
4355  NWNXPushString(IntToString(start));
4356  NWNXPushString(IntToString(stop));
4357  NWNXCall("NWNX_Redis", "Deferred");
4358  return NWNXPopInt();
4359 }
4360 
4361 int LREM(
4362  string key,
4363  // Redis type: integer
4364  int count,
4365  string value
4366 ) {
4367  NWNXPushString("LREM");
4368  NWNXPushString(key);
4369  NWNXPushString(IntToString(count));
4370  NWNXPushString(value);
4371  NWNXCall("NWNX_Redis", "Deferred");
4372  return NWNXPopInt();
4373 }
4374 
4375 int LSET(
4376  string key,
4377  // Redis type: integer
4378  int index,
4379  string value
4380 ) {
4381  NWNXPushString("LSET");
4382  NWNXPushString(key);
4383  NWNXPushString(IntToString(index));
4384  NWNXPushString(value);
4385  NWNXCall("NWNX_Redis", "Deferred");
4386  return NWNXPopInt();
4387 }
4388 
4389 int LTRIM(
4390  string key,
4391  // Redis type: integer
4392  int start,
4393  // Redis type: integer
4394  int stop
4395 ) {
4396  NWNXPushString("LTRIM");
4397  NWNXPushString(key);
4398  NWNXPushString(IntToString(start));
4399  NWNXPushString(IntToString(stop));
4400  NWNXCall("NWNX_Redis", "Deferred");
4401  return NWNXPopInt();
4402 }
4403 
4405  NWNXPushString("MEMORY_DOCTOR");
4406  NWNXCall("NWNX_Redis", "Deferred");
4407  return NWNXPopInt();
4408 }
4409 
4411  NWNXPushString("MEMORY_HELP");
4412  NWNXCall("NWNX_Redis", "Deferred");
4413  return NWNXPopInt();
4414 }
4415 
4417  NWNXPushString("MEMORY_MALLOC_STATS");
4418  NWNXCall("NWNX_Redis", "Deferred");
4419  return NWNXPopInt();
4420 }
4421 
4423  NWNXPushString("MEMORY_PURGE");
4424  NWNXCall("NWNX_Redis", "Deferred");
4425  return NWNXPopInt();
4426 }
4427 
4429  NWNXPushString("MEMORY_STATS");
4430  NWNXCall("NWNX_Redis", "Deferred");
4431  return NWNXPopInt();
4432 }
4433 
4435  string key,
4436  // Redis type: integer
4437  int samples_count = 0
4438 ) {
4439  NWNXPushString("MEMORY_USAGE");
4440  NWNXPushString(key);
4441  if (samples_count != 0) NWNXPushString(IntToString(samples_count));
4442  NWNXCall("NWNX_Redis", "Deferred");
4443  return NWNXPopInt();
4444 }
4445 
4446 int MGET(
4447  string key
4448 ) {
4449  NWNXPushString("MGET");
4450  NWNXPushString(key);
4451  NWNXCall("NWNX_Redis", "Deferred");
4452  return NWNXPopInt();
4453 }
4454 
4456  string host,
4457  string port,
4458  // Redis type: enum
4459  string key,
4460  // Redis type: integer
4461  int destination_db,
4462  // Redis type: integer
4463  int timeout,
4464  // Redis type: enum
4465  string copy = "",
4466  // Redis type: enum
4467  string replace = "",
4468  string auth_password = "",
4469  // Redis type: key
4470  string keys_key = ""
4471 ) {
4472  NWNXPushString("MIGRATE");
4473  NWNXPushString(host);
4474  NWNXPushString(port);
4475  NWNXPushString(key);
4476  NWNXPushString(IntToString(destination_db));
4477  NWNXPushString(IntToString(timeout));
4478  if (copy != "") NWNXPushString(copy);
4479  if (replace != "") NWNXPushString(replace);
4480  if (auth_password != "") NWNXPushString(auth_password);
4481  if (keys_key != "") NWNXPushString(keys_key);
4482  NWNXCall("NWNX_Redis", "Deferred");
4483  return NWNXPopInt();
4484 }
4485 
4486 int MONITOR() {
4487  NWNXPushString("MONITOR");
4488  NWNXCall("NWNX_Redis", "Deferred");
4489  return NWNXPopInt();
4490 }
4491 
4492 int MOVE(
4493  string key,
4494  // Redis type: integer
4495  int db
4496 ) {
4497  NWNXPushString("MOVE");
4498  NWNXPushString(key);
4499  NWNXPushString(IntToString(db));
4500  NWNXCall("NWNX_Redis", "Deferred");
4501  return NWNXPopInt();
4502 }
4503 
4504 int MSET(
4505  string key,
4506  string value
4507 ) {
4508  NWNXPushString("MSET");
4509  NWNXPushString(key);
4510  NWNXPushString(value);
4511  NWNXCall("NWNX_Redis", "Deferred");
4512  return NWNXPopInt();
4513 }
4514 
4516  string key,
4517  string value
4518 ) {
4519  NWNXPushString("MSETNX");
4520  NWNXPushString(key);
4521  NWNXPushString(value);
4522  NWNXCall("NWNX_Redis", "Deferred");
4523  return NWNXPopInt();
4524 }
4525 
4526 int MULTI() {
4527  NWNXPushString("MULTI");
4528  NWNXCall("NWNX_Redis", "Deferred");
4529  return NWNXPopInt();
4530 }
4531 
4533  string subcommand,
4534  string arguments = ""
4535 ) {
4536  NWNXPushString("OBJECT");
4537  NWNXPushString(subcommand);
4538  if (arguments != "") NWNXPushString(arguments);
4539  NWNXCall("NWNX_Redis", "Deferred");
4540  return NWNXPopInt();
4541 }
4542 
4544  string key
4545 ) {
4546  NWNXPushString("PERSIST");
4547  NWNXPushString(key);
4548  NWNXCall("NWNX_Redis", "Deferred");
4549  return NWNXPopInt();
4550 }
4551 
4553  string key,
4554  // Redis type: integer
4555  int milliseconds
4556 ) {
4557  NWNXPushString("PEXPIRE");
4558  NWNXPushString(key);
4559  NWNXPushString(IntToString(milliseconds));
4560  NWNXCall("NWNX_Redis", "Deferred");
4561  return NWNXPopInt();
4562 }
4563 
4565  string key,
4566  // Redis type: posix time
4567  string milliseconds_timestamp
4568 ) {
4569  NWNXPushString("PEXPIREAT");
4570  NWNXPushString(key);
4571  NWNXPushString(milliseconds_timestamp);
4572  NWNXCall("NWNX_Redis", "Deferred");
4573  return NWNXPopInt();
4574 }
4575 
4576 int PFADD(
4577  string key,
4578  string element
4579 ) {
4580  NWNXPushString("PFADD");
4581  NWNXPushString(key);
4582  NWNXPushString(element);
4583  NWNXCall("NWNX_Redis", "Deferred");
4584  return NWNXPopInt();
4585 }
4586 
4588  string key
4589 ) {
4590  NWNXPushString("PFCOUNT");
4591  NWNXPushString(key);
4592  NWNXCall("NWNX_Redis", "Deferred");
4593  return NWNXPopInt();
4594 }
4595 
4597  // Redis type: key
4598  string destkey,
4599  // Redis type: key
4600  string sourcekey
4601 ) {
4602  NWNXPushString("PFMERGE");
4603  NWNXPushString(destkey);
4604  NWNXPushString(sourcekey);
4605  NWNXCall("NWNX_Redis", "Deferred");
4606  return NWNXPopInt();
4607 }
4608 
4609 int PING(
4610  string message = ""
4611 ) {
4612  NWNXPushString("PING");
4613  if (message != "") NWNXPushString(message);
4614  NWNXCall("NWNX_Redis", "Deferred");
4615  return NWNXPopInt();
4616 }
4617 
4619  string key,
4620  // Redis type: integer
4621  int milliseconds,
4622  string value
4623 ) {
4624  NWNXPushString("PSETEX");
4625  NWNXPushString(key);
4626  NWNXPushString(IntToString(milliseconds));
4627  NWNXPushString(value);
4628  NWNXCall("NWNX_Redis", "Deferred");
4629  return NWNXPopInt();
4630 }
4631 
4633  string subcommand,
4634  string argument = ""
4635 ) {
4636  NWNXPushString("PUBSUB");
4637  NWNXPushString(subcommand);
4638  if (argument != "") NWNXPushString(argument);
4639  NWNXCall("NWNX_Redis", "Deferred");
4640  return NWNXPopInt();
4641 }
4642 
4643 int PTTL(
4644  string key
4645 ) {
4646  NWNXPushString("PTTL");
4647  NWNXPushString(key);
4648  NWNXCall("NWNX_Redis", "Deferred");
4649  return NWNXPopInt();
4650 }
4651 
4653  string channel,
4654  string message
4655 ) {
4656  NWNXPushString("PUBLISH");
4657  NWNXPushString(channel);
4658  NWNXPushString(message);
4659  NWNXCall("NWNX_Redis", "Deferred");
4660  return NWNXPopInt();
4661 }
4662 
4663 int QUIT() {
4664  NWNXPushString("QUIT");
4665  NWNXCall("NWNX_Redis", "Deferred");
4666  return NWNXPopInt();
4667 }
4668 
4669 int RANDOMKEY() {
4670  NWNXPushString("RANDOMKEY");
4671  NWNXCall("NWNX_Redis", "Deferred");
4672  return NWNXPopInt();
4673 }
4674 
4675 int READONLY() {
4676  NWNXPushString("READONLY");
4677  NWNXCall("NWNX_Redis", "Deferred");
4678  return NWNXPopInt();
4679 }
4680 
4681 int READWRITE() {
4682  NWNXPushString("READWRITE");
4683  NWNXCall("NWNX_Redis", "Deferred");
4684  return NWNXPopInt();
4685 }
4686 
4688  string key,
4689  // Redis type: key
4690  string newkey
4691 ) {
4692  NWNXPushString("RENAME");
4693  NWNXPushString(key);
4694  NWNXPushString(newkey);
4695  NWNXCall("NWNX_Redis", "Deferred");
4696  return NWNXPopInt();
4697 }
4698 
4700  string key,
4701  // Redis type: key
4702  string newkey
4703 ) {
4704  NWNXPushString("RENAMENX");
4705  NWNXPushString(key);
4706  NWNXPushString(newkey);
4707  NWNXCall("NWNX_Redis", "Deferred");
4708  return NWNXPopInt();
4709 }
4710 
4712  string key,
4713  // Redis type: integer
4714  int ttl,
4715  string serialized_value,
4716  // Redis type: enum
4717  string replace = "",
4718  // Redis type: enum
4719  string absttl = "",
4720  // Redis type: integer
4721  int idletime_seconds = 0,
4722  // Redis type: integer
4723  int freq_frequency = 0
4724 ) {
4725  NWNXPushString("RESTORE");
4726  NWNXPushString(key);
4727  NWNXPushString(IntToString(ttl));
4728  NWNXPushString(serialized_value);
4729  if (replace != "") NWNXPushString(replace);
4730  if (absttl != "") NWNXPushString(absttl);
4731  if (idletime_seconds != 0) NWNXPushString(IntToString(idletime_seconds));
4732  if (freq_frequency != 0) NWNXPushString(IntToString(freq_frequency));
4733  NWNXCall("NWNX_Redis", "Deferred");
4734  return NWNXPopInt();
4735 }
4736 
4737 int ROLE() {
4738  NWNXPushString("ROLE");
4739  NWNXCall("NWNX_Redis", "Deferred");
4740  return NWNXPopInt();
4741 }
4742 
4743 int RPOP(
4744  string key
4745 ) {
4746  NWNXPushString("RPOP");
4747  NWNXPushString(key);
4748  NWNXCall("NWNX_Redis", "Deferred");
4749  return NWNXPopInt();
4750 }
4751 
4753  // Redis type: key
4754  string source,
4755  // Redis type: key
4756  string destination
4757 ) {
4758  NWNXPushString("RPOPLPUSH");
4759  NWNXPushString(source);
4760  NWNXPushString(destination);
4761  NWNXCall("NWNX_Redis", "Deferred");
4762  return NWNXPopInt();
4763 }
4764 
4765 int RPUSH(
4766  string key,
4767  string value
4768 ) {
4769  NWNXPushString("RPUSH");
4770  NWNXPushString(key);
4771  NWNXPushString(value);
4772  NWNXCall("NWNX_Redis", "Deferred");
4773  return NWNXPopInt();
4774 }
4775 
4777  string key,
4778  string value
4779 ) {
4780  NWNXPushString("RPUSHX");
4781  NWNXPushString(key);
4782  NWNXPushString(value);
4783  NWNXCall("NWNX_Redis", "Deferred");
4784  return NWNXPopInt();
4785 }
4786 
4787 int SADD(
4788  string key,
4789  string member
4790 ) {
4791  NWNXPushString("SADD");
4792  NWNXPushString(key);
4793  NWNXPushString(member);
4794  NWNXCall("NWNX_Redis", "Deferred");
4795  return NWNXPopInt();
4796 }
4797 
4798 int SAVE() {
4799  NWNXPushString("SAVE");
4800  NWNXCall("NWNX_Redis", "Deferred");
4801  return NWNXPopInt();
4802 }
4803 
4804 int SCARD(
4805  string key
4806 ) {
4807  NWNXPushString("SCARD");
4808  NWNXPushString(key);
4809  NWNXCall("NWNX_Redis", "Deferred");
4810  return NWNXPopInt();
4811 }
4812 
4814  // Redis type: enum
4815  string mode
4816 ) {
4817  NWNXPushString("SCRIPT_DEBUG");
4818  NWNXPushString(mode);
4819  NWNXCall("NWNX_Redis", "Deferred");
4820  return NWNXPopInt();
4821 }
4822 
4824  string sha1
4825 ) {
4826  NWNXPushString("SCRIPT_EXISTS");
4827  NWNXPushString(sha1);
4828  NWNXCall("NWNX_Redis", "Deferred");
4829  return NWNXPopInt();
4830 }
4831 
4833  NWNXPushString("SCRIPT_FLUSH");
4834  NWNXCall("NWNX_Redis", "Deferred");
4835  return NWNXPopInt();
4836 }
4837 
4839  NWNXPushString("SCRIPT_KILL");
4840  NWNXCall("NWNX_Redis", "Deferred");
4841  return NWNXPopInt();
4842 }
4843 
4845  string script
4846 ) {
4847  NWNXPushString("SCRIPT_LOAD");
4848  NWNXPushString(script);
4849  NWNXCall("NWNX_Redis", "Deferred");
4850  return NWNXPopInt();
4851 }
4852 
4853 int SDIFF(
4854  string key
4855 ) {
4856  NWNXPushString("SDIFF");
4857  NWNXPushString(key);
4858  NWNXCall("NWNX_Redis", "Deferred");
4859  return NWNXPopInt();
4860 }
4861 
4863  // Redis type: key
4864  string destination,
4865  string key
4866 ) {
4867  NWNXPushString("SDIFFSTORE");
4868  NWNXPushString(destination);
4869  NWNXPushString(key);
4870  NWNXCall("NWNX_Redis", "Deferred");
4871  return NWNXPopInt();
4872 }
4873 
4875  // Redis type: integer
4876  int index
4877 ) {
4878  NWNXPushString("SELECT");
4879  NWNXPushString(IntToString(index));
4880  NWNXCall("NWNX_Redis", "Deferred");
4881  return NWNXPopInt();
4882 }
4883 
4884 int SET(
4885  string key,
4886  string value,
4887  // Redis type: enum
4888  string condition = ""
4889 ) {
4890  NWNXPushString("SET");
4891  NWNXPushString(key);
4892  NWNXPushString(value);
4893  if (condition != "") NWNXPushString(condition);
4894  NWNXCall("NWNX_Redis", "Deferred");
4895  return NWNXPopInt();
4896 }
4897 
4899  string key,
4900  // Redis type: integer
4901  int offset,
4902  string value
4903 ) {
4904  NWNXPushString("SETBIT");
4905  NWNXPushString(key);
4906  NWNXPushString(IntToString(offset));
4907  NWNXPushString(value);
4908  NWNXCall("NWNX_Redis", "Deferred");
4909  return NWNXPopInt();
4910 }
4911 
4912 int SETEX(
4913  string key,
4914  // Redis type: integer
4915  int seconds,
4916  string value
4917 ) {
4918  NWNXPushString("SETEX");
4919  NWNXPushString(key);
4920  NWNXPushString(IntToString(seconds));
4921  NWNXPushString(value);
4922  NWNXCall("NWNX_Redis", "Deferred");
4923  return NWNXPopInt();
4924 }
4925 
4926 int SETNX(
4927  string key,
4928  string value
4929 ) {
4930  NWNXPushString("SETNX");
4931  NWNXPushString(key);
4932  NWNXPushString(value);
4933  NWNXCall("NWNX_Redis", "Deferred");
4934  return NWNXPopInt();
4935 }
4936 
4938  string key,
4939  // Redis type: integer
4940  int offset,
4941  string value
4942 ) {
4943  NWNXPushString("SETRANGE");
4944  NWNXPushString(key);
4945  NWNXPushString(IntToString(offset));
4946  NWNXPushString(value);
4947  NWNXCall("NWNX_Redis", "Deferred");
4948  return NWNXPopInt();
4949 }
4950 
4952  // Redis type: enum
4953  string save_mode = ""
4954 ) {
4955  NWNXPushString("SHUTDOWN");
4956  if (save_mode != "") NWNXPushString(save_mode);
4957  NWNXCall("NWNX_Redis", "Deferred");
4958  return NWNXPopInt();
4959 }
4960 
4962  string key
4963 ) {
4964  NWNXPushString("SINTER");
4965  NWNXPushString(key);
4966  NWNXCall("NWNX_Redis", "Deferred");
4967  return NWNXPopInt();
4968 }
4969 
4971  // Redis type: key
4972  string destination,
4973  string key
4974 ) {
4975  NWNXPushString("SINTERSTORE");
4976  NWNXPushString(destination);
4977  NWNXPushString(key);
4978  NWNXCall("NWNX_Redis", "Deferred");
4979  return NWNXPopInt();
4980 }
4981 
4983  string key,
4984  string member
4985 ) {
4986  NWNXPushString("SISMEMBER");
4987  NWNXPushString(key);
4988  NWNXPushString(member);
4989  NWNXCall("NWNX_Redis", "Deferred");
4990  return NWNXPopInt();
4991 }
4992 
4994  string host,
4995  string port
4996 ) {
4997  NWNXPushString("SLAVEOF");
4998  NWNXPushString(host);
4999  NWNXPushString(port);
5000  NWNXCall("NWNX_Redis", "Deferred");
5001  return NWNXPopInt();
5002 }
5003 
5005  string host,
5006  string port
5007 ) {
5008  NWNXPushString("REPLICAOF");
5009  NWNXPushString(host);
5010  NWNXPushString(port);
5011  NWNXCall("NWNX_Redis", "Deferred");
5012  return NWNXPopInt();
5013 }
5014 
5016  string subcommand,
5017  string argument = ""
5018 ) {
5019  NWNXPushString("SLOWLOG");
5020  NWNXPushString(subcommand);
5021  if (argument != "") NWNXPushString(argument);
5022  NWNXCall("NWNX_Redis", "Deferred");
5023  return NWNXPopInt();
5024 }
5025 
5027  string key
5028 ) {
5029  NWNXPushString("SMEMBERS");
5030  NWNXPushString(key);
5031  NWNXCall("NWNX_Redis", "Deferred");
5032  return NWNXPopInt();
5033 }
5034 
5035 int SMOVE(
5036  // Redis type: key
5037  string source,
5038  // Redis type: key
5039  string destination,
5040  string member
5041 ) {
5042  NWNXPushString("SMOVE");
5043  NWNXPushString(source);
5044  NWNXPushString(destination);
5045  NWNXPushString(member);
5046  NWNXCall("NWNX_Redis", "Deferred");
5047  return NWNXPopInt();
5048 }
5049 
5050 int SORT(
5051  string key,
5052  // Redis type: pattern
5053  string by_pattern = "",
5054  // Redis type: integer
5055  int limit_offset = 0,
5056  // Redis type: integer
5057  int limit_count = 0,
5058  string get_pattern = "",
5059  // Redis type: enum
5060  string order = "",
5061  // Redis type: enum
5062  string sorting = "",
5063  // Redis type: key
5064  string store_destination = ""
5065 ) {
5066  NWNXPushString("SORT");
5067  NWNXPushString(key);
5068  if (by_pattern != "") NWNXPushString(by_pattern);
5069  if (limit_offset != 0) NWNXPushString(IntToString(limit_offset));
5070  if (limit_count != 0) NWNXPushString(IntToString(limit_count));
5071  if (get_pattern != "") NWNXPushString(get_pattern);
5072  if (order != "") NWNXPushString(order);
5073  if (sorting != "") NWNXPushString(sorting);
5074  if (store_destination != "") NWNXPushString(store_destination);
5075  NWNXCall("NWNX_Redis", "Deferred");
5076  return NWNXPopInt();
5077 }
5078 
5079 int SPOP(
5080  string key,
5081  // Redis type: integer
5082  int count = 0
5083 ) {
5084  NWNXPushString("SPOP");
5085  NWNXPushString(key);
5086  if (count != 0) NWNXPushString(IntToString(count));
5087  NWNXCall("NWNX_Redis", "Deferred");
5088  return NWNXPopInt();
5089 }
5090 
5092  string key,
5093  // Redis type: integer
5094  int count = 0
5095 ) {
5096  NWNXPushString("SRANDMEMBER");
5097  NWNXPushString(key);
5098  if (count != 0) NWNXPushString(IntToString(count));
5099  NWNXCall("NWNX_Redis", "Deferred");
5100  return NWNXPopInt();
5101 }
5102 
5103 int SREM(
5104  string key,
5105  string member
5106 ) {
5107  NWNXPushString("SREM");
5108  NWNXPushString(key);
5109  NWNXPushString(member);
5110  NWNXCall("NWNX_Redis", "Deferred");
5111  return NWNXPopInt();
5112 }
5113 
5115  string key
5116 ) {
5117  NWNXPushString("STRLEN");
5118  NWNXPushString(key);
5119  NWNXCall("NWNX_Redis", "Deferred");
5120  return NWNXPopInt();
5121 }
5122 
5124  string key
5125 ) {
5126  NWNXPushString("SUNION");
5127  NWNXPushString(key);
5128  NWNXCall("NWNX_Redis", "Deferred");
5129  return NWNXPopInt();
5130 }
5131 
5133  // Redis type: key
5134  string destination,
5135  string key
5136 ) {
5137  NWNXPushString("SUNIONSTORE");
5138  NWNXPushString(destination);
5139  NWNXPushString(key);
5140  NWNXCall("NWNX_Redis", "Deferred");
5141  return NWNXPopInt();
5142 }
5143 
5145  // Redis type: integer
5146  int index,
5147  // Redis type: integer
5148  int index_1
5149 ) {
5150  NWNXPushString("SWAPDB");
5151  NWNXPushString(IntToString(index));
5152  NWNXPushString(IntToString(index_1));
5153  NWNXCall("NWNX_Redis", "Deferred");
5154  return NWNXPopInt();
5155 }
5156 
5157 int SYNC() {
5158  NWNXPushString("SYNC");
5159  NWNXCall("NWNX_Redis", "Deferred");
5160  return NWNXPopInt();
5161 }
5162 
5163 int TIME() {
5164  NWNXPushString("TIME");
5165  NWNXCall("NWNX_Redis", "Deferred");
5166  return NWNXPopInt();
5167 }
5168 
5169 int TOUCH(
5170  string key
5171 ) {
5172  NWNXPushString("TOUCH");
5173  NWNXPushString(key);
5174  NWNXCall("NWNX_Redis", "Deferred");
5175  return NWNXPopInt();
5176 }
5177 
5178 int TTL(
5179  string key
5180 ) {
5181  NWNXPushString("TTL");
5182  NWNXPushString(key);
5183  NWNXCall("NWNX_Redis", "Deferred");
5184  return NWNXPopInt();
5185 }
5186 
5187 int TYPE(
5188  string key
5189 ) {
5190  NWNXPushString("TYPE");
5191  NWNXPushString(key);
5192  NWNXCall("NWNX_Redis", "Deferred");
5193  return NWNXPopInt();
5194 }
5195 
5197  string key
5198 ) {
5199  NWNXPushString("UNLINK");
5200  NWNXPushString(key);
5201  NWNXCall("NWNX_Redis", "Deferred");
5202  return NWNXPopInt();
5203 }
5204 
5205 int UNWATCH() {
5206  NWNXPushString("UNWATCH");
5207  NWNXCall("NWNX_Redis", "Deferred");
5208  return NWNXPopInt();
5209 }
5210 
5211 int WAIT(
5212  // Redis type: integer
5213  int numreplicas,
5214  // Redis type: integer
5215  int timeout
5216 ) {
5217  NWNXPushString("WAIT");
5218  NWNXPushString(IntToString(numreplicas));
5219  NWNXPushString(IntToString(timeout));
5220  NWNXCall("NWNX_Redis", "Deferred");
5221  return NWNXPopInt();
5222 }
5223 
5224 int WATCH(
5225  string key
5226 ) {
5227  NWNXPushString("WATCH");
5228  NWNXPushString(key);
5229  NWNXCall("NWNX_Redis", "Deferred");
5230  return NWNXPopInt();
5231 }
5232 
5233 int ZADD(
5234  string key,
5235  // Redis type: enum
5236  string condition = "",
5237  // Redis type: enum
5238  string change = "",
5239  // Redis type: enum
5240  string increment = "",
5241  // Redis type: double
5242  float score = 0.0,
5243  string member = ""
5244 ) {
5245  NWNXPushString("ZADD");
5246  NWNXPushString(key);
5247  if (condition != "") NWNXPushString(condition);
5248  if (change != "") NWNXPushString(change);
5249  if (increment != "") NWNXPushString(increment);
5250  NWNXPushString(FloatToString(score, 0));
5251  NWNXPushString(member);
5252  NWNXCall("NWNX_Redis", "Deferred");
5253  return NWNXPopInt();
5254 }
5255 
5256 int ZCARD(
5257  string key
5258 ) {
5259  NWNXPushString("ZCARD");
5260  NWNXPushString(key);
5261  NWNXCall("NWNX_Redis", "Deferred");
5262  return NWNXPopInt();
5263 }
5264 
5266  string key,
5267  // Redis type: double
5268  float min,
5269  // Redis type: double
5270  float max
5271 ) {
5272  NWNXPushString("ZCOUNT");
5273  NWNXPushString(key);
5274  NWNXPushString(FloatToString(min, 0));
5275  NWNXPushString(FloatToString(max, 0));
5276  NWNXCall("NWNX_Redis", "Deferred");
5277  return NWNXPopInt();
5278 }
5279 
5281  string key,
5282  // Redis type: integer
5283  int increment,
5284  string member
5285 ) {
5286  NWNXPushString("ZINCRBY");
5287  NWNXPushString(key);
5288  NWNXPushString(IntToString(increment));
5289  NWNXPushString(member);
5290  NWNXCall("NWNX_Redis", "Deferred");
5291  return NWNXPopInt();
5292 }
5293 
5295  // Redis type: key
5296  string destination,
5297  // Redis type: integer
5298  int numkeys,
5299  string key,
5300  // Redis type: integer
5301  int weights_weight = 0,
5302  // Redis type: enum
5303  string aggregate_aggregate = ""
5304 ) {
5305  NWNXPushString("ZINTERSTORE");
5306  NWNXPushString(destination);
5307  NWNXPushString(IntToString(numkeys));
5308  NWNXPushString(key);
5309  if (weights_weight != 0) NWNXPushString(IntToString(weights_weight));
5310  if (aggregate_aggregate != "") NWNXPushString(aggregate_aggregate);
5311  NWNXCall("NWNX_Redis", "Deferred");
5312  return NWNXPopInt();
5313 }
5314 
5316  string key,
5317  string min,
5318  string max
5319 ) {
5320  NWNXPushString("ZLEXCOUNT");
5321  NWNXPushString(key);
5322  NWNXPushString(min);
5323  NWNXPushString(max);
5324  NWNXCall("NWNX_Redis", "Deferred");
5325  return NWNXPopInt();
5326 }
5327 
5329  string key,
5330  // Redis type: integer
5331  int count = 0
5332 ) {
5333  NWNXPushString("ZPOPMAX");
5334  NWNXPushString(key);
5335  if (count != 0) NWNXPushString(IntToString(count));
5336  NWNXCall("NWNX_Redis", "Deferred");
5337  return NWNXPopInt();
5338 }
5339 
5341  string key,
5342  // Redis type: integer
5343  int count = 0
5344 ) {
5345  NWNXPushString("ZPOPMIN");
5346  NWNXPushString(key);
5347  if (count != 0) NWNXPushString(IntToString(count));
5348  NWNXCall("NWNX_Redis", "Deferred");
5349  return NWNXPopInt();
5350 }
5351 
5353  string key,
5354  // Redis type: integer
5355  int start,
5356  // Redis type: integer
5357  int stop,
5358  // Redis type: enum
5359  string withscores = ""
5360 ) {
5361  NWNXPushString("ZRANGE");
5362  NWNXPushString(key);
5363  NWNXPushString(IntToString(start));
5364  NWNXPushString(IntToString(stop));
5365  if (withscores != "") NWNXPushString(withscores);
5366  NWNXCall("NWNX_Redis", "Deferred");
5367  return NWNXPopInt();
5368 }
5369 
5371  string key,
5372  string min,
5373  string max,
5374  // Redis type: integer
5375  int limit_offset = 0,
5376  // Redis type: integer
5377  int limit_count = 0
5378 ) {
5379  NWNXPushString("ZRANGEBYLEX");
5380  NWNXPushString(key);
5381  NWNXPushString(min);
5382  NWNXPushString(max);
5383  if (limit_offset != 0) NWNXPushString(IntToString(limit_offset));
5384  if (limit_count != 0) NWNXPushString(IntToString(limit_count));
5385  NWNXCall("NWNX_Redis", "Deferred");
5386  return NWNXPopInt();
5387 }
5388 
5390  string key,
5391  string max,
5392  string min,
5393  // Redis type: integer
5394  int limit_offset = 0,
5395  // Redis type: integer
5396  int limit_count = 0
5397 ) {
5398  NWNXPushString("ZREVRANGEBYLEX");
5399  NWNXPushString(key);
5400  NWNXPushString(max);
5401  NWNXPushString(min);
5402  if (limit_offset != 0) NWNXPushString(IntToString(limit_offset));
5403  if (limit_count != 0) NWNXPushString(IntToString(limit_count));
5404  NWNXCall("NWNX_Redis", "Deferred");
5405  return NWNXPopInt();
5406 }
5407 
5409  string key,
5410  // Redis type: double
5411  float min,
5412  // Redis type: double
5413  float max,
5414  // Redis type: enum
5415  string withscores = "",
5416  // Redis type: integer
5417  int limit_offset = 0,
5418  // Redis type: integer
5419  int limit_count = 0
5420 ) {
5421  NWNXPushString("ZRANGEBYSCORE");
5422  NWNXPushString(key);
5423  NWNXPushString(FloatToString(min, 0));
5424  NWNXPushString(FloatToString(max, 0));
5425  if (withscores != "") NWNXPushString(withscores);
5426  if (limit_offset != 0) NWNXPushString(IntToString(limit_offset));
5427  if (limit_count != 0) NWNXPushString(IntToString(limit_count));
5428  NWNXCall("NWNX_Redis", "Deferred");
5429  return NWNXPopInt();
5430 }
5431 
5432 int ZRANK(
5433  string key,
5434  string member
5435 ) {
5436  NWNXPushString("ZRANK");
5437  NWNXPushString(key);
5438  NWNXPushString(member);
5439  NWNXCall("NWNX_Redis", "Deferred");
5440  return NWNXPopInt();
5441 }
5442 
5443 int ZREM(
5444  string key,
5445  string member
5446 ) {
5447  NWNXPushString("ZREM");
5448  NWNXPushString(key);
5449  NWNXPushString(member);
5450  NWNXCall("NWNX_Redis", "Deferred");
5451  return NWNXPopInt();
5452 }
5453 
5455  string key,
5456  string min,
5457  string max
5458 ) {
5459  NWNXPushString("ZREMRANGEBYLEX");
5460  NWNXPushString(key);
5461  NWNXPushString(min);
5462  NWNXPushString(max);
5463  NWNXCall("NWNX_Redis", "Deferred");
5464  return NWNXPopInt();
5465 }
5466 
5468  string key,
5469  // Redis type: integer
5470  int start,
5471  // Redis type: integer
5472  int stop
5473 ) {
5474  NWNXPushString("ZREMRANGEBYRANK");
5475  NWNXPushString(key);
5476  NWNXPushString(IntToString(start));
5477  NWNXPushString(IntToString(stop));
5478  NWNXCall("NWNX_Redis", "Deferred");
5479  return NWNXPopInt();
5480 }
5481 
5483  string key,
5484  // Redis type: double
5485  float min,
5486  // Redis type: double
5487  float max
5488 ) {
5489  NWNXPushString("ZREMRANGEBYSCORE");
5490  NWNXPushString(key);
5491  NWNXPushString(FloatToString(min, 0));
5492  NWNXPushString(FloatToString(max, 0));
5493  NWNXCall("NWNX_Redis", "Deferred");
5494  return NWNXPopInt();
5495 }
5496 
5498  string key,
5499  // Redis type: integer
5500  int start,
5501  // Redis type: integer
5502  int stop,
5503  // Redis type: enum
5504  string withscores = ""
5505 ) {
5506  NWNXPushString("ZREVRANGE");
5507  NWNXPushString(key);
5508  NWNXPushString(IntToString(start));
5509  NWNXPushString(IntToString(stop));
5510  if (withscores != "") NWNXPushString(withscores);
5511  NWNXCall("NWNX_Redis", "Deferred");
5512  return NWNXPopInt();
5513 }
5514 
5516  string key,
5517  // Redis type: double
5518  float max,
5519  // Redis type: double
5520  float min,
5521  // Redis type: enum
5522  string withscores = "",
5523  // Redis type: integer
5524  int limit_offset = 0,
5525  // Redis type: integer
5526  int limit_count = 0
5527 ) {
5528  NWNXPushString("ZREVRANGEBYSCORE");
5529  NWNXPushString(key);
5530  NWNXPushString(FloatToString(max, 0));
5531  NWNXPushString(FloatToString(min, 0));
5532  if (withscores != "") NWNXPushString(withscores);
5533  if (limit_offset != 0) NWNXPushString(IntToString(limit_offset));
5534  if (limit_count != 0) NWNXPushString(IntToString(limit_count));
5535  NWNXCall("NWNX_Redis", "Deferred");
5536  return NWNXPopInt();
5537 }
5538 
5540  string key,
5541  string member
5542 ) {
5543  NWNXPushString("ZREVRANK");
5544  NWNXPushString(key);
5545  NWNXPushString(member);
5546  NWNXCall("NWNX_Redis", "Deferred");
5547  return NWNXPopInt();
5548 }
5549 
5551  string key,
5552  string member
5553 ) {
5554  NWNXPushString("ZSCORE");
5555  NWNXPushString(key);
5556  NWNXPushString(member);
5557  NWNXCall("NWNX_Redis", "Deferred");
5558  return NWNXPopInt();
5559 }
5560 
5562  // Redis type: key
5563  string destination,
5564  // Redis type: integer
5565  int numkeys,
5566  string key,
5567  // Redis type: integer
5568  int weights_weight = 0,
5569  // Redis type: enum
5570  string aggregate_aggregate = ""
5571 ) {
5572  NWNXPushString("ZUNIONSTORE");
5573  NWNXPushString(destination);
5574  NWNXPushString(IntToString(numkeys));
5575  NWNXPushString(key);
5576  if (weights_weight != 0) NWNXPushString(IntToString(weights_weight));
5577  if (aggregate_aggregate != "") NWNXPushString(aggregate_aggregate);
5578  NWNXCall("NWNX_Redis", "Deferred");
5579  return NWNXPopInt();
5580 }
5581 
5582 int SCAN(
5583  // Redis type: integer
5584  int cursor,
5585  // Redis type: pattern
5586  string match_pattern = "",
5587  // Redis type: integer
5588  int count_count = 0,
5589  string type_type = ""
5590 ) {
5591  NWNXPushString("SCAN");
5592  NWNXPushString(IntToString(cursor));
5593  if (match_pattern != "") NWNXPushString(match_pattern);
5594  if (count_count != 0) NWNXPushString(IntToString(count_count));
5595  if (type_type != "") NWNXPushString(type_type);
5596  NWNXCall("NWNX_Redis", "Deferred");
5597  return NWNXPopInt();
5598 }
5599 
5600 int SSCAN(
5601  string key,
5602  // Redis type: integer
5603  int cursor,
5604  // Redis type: pattern
5605  string match_pattern = "",
5606  // Redis type: integer
5607  int count_count = 0
5608 ) {
5609  NWNXPushString("SSCAN");
5610  NWNXPushString(key);
5611  NWNXPushString(IntToString(cursor));
5612  if (match_pattern != "") NWNXPushString(match_pattern);
5613  if (count_count != 0) NWNXPushString(IntToString(count_count));
5614  NWNXCall("NWNX_Redis", "Deferred");
5615  return NWNXPopInt();
5616 }
5617 
5618 int HSCAN(
5619  string key,
5620  // Redis type: integer
5621  int cursor,
5622  // Redis type: pattern
5623  string match_pattern = "",
5624  // Redis type: integer
5625  int count_count = 0
5626 ) {
5627  NWNXPushString("HSCAN");
5628  NWNXPushString(key);
5629  NWNXPushString(IntToString(cursor));
5630  if (match_pattern != "") NWNXPushString(match_pattern);
5631  if (count_count != 0) NWNXPushString(IntToString(count_count));
5632  NWNXCall("NWNX_Redis", "Deferred");
5633  return NWNXPopInt();
5634 }
5635 
5636 int ZSCAN(
5637  string key,
5638  // Redis type: integer
5639  int cursor,
5640  // Redis type: pattern
5641  string match_pattern = "",
5642  // Redis type: integer
5643  int count_count = 0
5644 ) {
5645  NWNXPushString("ZSCAN");
5646  NWNXPushString(key);
5647  NWNXPushString(IntToString(cursor));
5648  if (match_pattern != "") NWNXPushString(match_pattern);
5649  if (count_count != 0) NWNXPushString(IntToString(count_count));
5650  NWNXCall("NWNX_Redis", "Deferred");
5651  return NWNXPopInt();
5652 }
5653 
5654 int XINFO(
5655  // Redis type: key
5656  string consumers_key = "",
5657  string consumers_groupname = "",
5658  // Redis type: key
5659  string groups_key = "",
5660  // Redis type: key
5661  string stream_key = "",
5662  // Redis type: enum
5663  string help = ""
5664 ) {
5665  NWNXPushString("XINFO");
5666  if (consumers_key != "") NWNXPushString(consumers_key);
5667  if (consumers_groupname != "") NWNXPushString(consumers_groupname);
5668  if (groups_key != "") NWNXPushString(groups_key);
5669  if (stream_key != "") NWNXPushString(stream_key);
5670  if (help != "") NWNXPushString(help);
5671  NWNXCall("NWNX_Redis", "Deferred");
5672  return NWNXPopInt();
5673 }
5674 
5675 int XADD(
5676  string key,
5677  string ID,
5678  // Redis type: value
5679  string field,
5680  string str
5681 ) {
5682  NWNXPushString("XADD");
5683  NWNXPushString(key);
5684  NWNXPushString(ID);
5685  NWNXPushString(field);
5686  NWNXPushString(str);
5687  NWNXCall("NWNX_Redis", "Deferred");
5688  return NWNXPopInt();
5689 }
5690 
5691 int XTRIM(
5692  string key,
5693  // Redis type: enum
5694  string strategy,
5695  // Redis type: enum
5696  string approx = "",
5697  // Redis type: integer
5698  int count = 0
5699 ) {
5700  NWNXPushString("XTRIM");
5701  NWNXPushString(key);
5702  NWNXPushString(strategy);
5703  if (approx != "") NWNXPushString(approx);
5704  NWNXPushString(IntToString(count));
5705  NWNXCall("NWNX_Redis", "Deferred");
5706  return NWNXPopInt();
5707 }
5708 
5709 int XDEL(
5710  string key,
5711  string ID
5712 ) {
5713  NWNXPushString("XDEL");
5714  NWNXPushString(key);
5715  NWNXPushString(ID);
5716  NWNXCall("NWNX_Redis", "Deferred");
5717  return NWNXPopInt();
5718 }
5719 
5721  string key,
5722  string start,
5723  string end,
5724  // Redis type: integer
5725  int count_count = 0
5726 ) {
5727  NWNXPushString("XRANGE");
5728  NWNXPushString(key);
5729  NWNXPushString(start);
5730  NWNXPushString(end);
5731  if (count_count != 0) NWNXPushString(IntToString(count_count));
5732  NWNXCall("NWNX_Redis", "Deferred");
5733  return NWNXPopInt();
5734 }
5735 
5737  string key,
5738  string end,
5739  string start,
5740  // Redis type: integer
5741  int count_count = 0
5742 ) {
5743  NWNXPushString("XREVRANGE");
5744  NWNXPushString(key);
5745  NWNXPushString(end);
5746  NWNXPushString(start);
5747  if (count_count != 0) NWNXPushString(IntToString(count_count));
5748  NWNXCall("NWNX_Redis", "Deferred");
5749  return NWNXPopInt();
5750 }
5751 
5752 int XLEN(
5753  string key
5754 ) {
5755  NWNXPushString("XLEN");
5756  NWNXPushString(key);
5757  NWNXCall("NWNX_Redis", "Deferred");
5758  return NWNXPopInt();
5759 }
5760 
5761 int XREAD(
5762  // Redis type: integer
5763  int count_count = 0,
5764  // Redis type: integer
5765  int block_milliseconds = 0,
5766  // Redis type: enum
5767  string streams = "",
5768  string key = "",
5769  string ID = ""
5770 ) {
5771  NWNXPushString("XREAD");
5772  if (count_count != 0) NWNXPushString(IntToString(count_count));
5773  if (block_milliseconds != 0) NWNXPushString(IntToString(block_milliseconds));
5774  NWNXPushString(streams);
5775  NWNXPushString(key);
5776  NWNXPushString(ID);
5777  NWNXCall("NWNX_Redis", "Deferred");
5778  return NWNXPopInt();
5779 }
5780 
5782  // Redis type: key
5783  string create_key = "",
5784  string create_groupname = "",
5785  string create_id_or__ = "",
5786  // Redis type: key
5787  string setid_key = "",
5788  string setid_groupname = "",
5789  string setid_id_or__ = "",
5790  // Redis type: key
5791  string destroy_key = "",
5792  string destroy_groupname = "",
5793  // Redis type: key
5794  string delconsumer_key = "",
5795  string delconsumer_groupname = "",
5796  string delconsumer_consumername = ""
5797 ) {
5798  NWNXPushString("XGROUP");
5799  if (create_key != "") NWNXPushString(create_key);
5800  if (create_groupname != "") NWNXPushString(create_groupname);
5801  if (create_id_or__ != "") NWNXPushString(create_id_or__);
5802  if (setid_key != "") NWNXPushString(setid_key);
5803  if (setid_groupname != "") NWNXPushString(setid_groupname);
5804  if (setid_id_or__ != "") NWNXPushString(setid_id_or__);
5805  if (destroy_key != "") NWNXPushString(destroy_key);
5806  if (destroy_groupname != "") NWNXPushString(destroy_groupname);
5807  if (delconsumer_key != "") NWNXPushString(delconsumer_key);
5808  if (delconsumer_groupname != "") NWNXPushString(delconsumer_groupname);
5809  if (delconsumer_consumername != "") NWNXPushString(delconsumer_consumername);
5810  NWNXCall("NWNX_Redis", "Deferred");
5811  return NWNXPopInt();
5812 }
5813 
5815  string group_group,
5816  string group_consumer,
5817  // Redis type: integer
5818  int count_count = 0,
5819  // Redis type: integer
5820  int block_milliseconds = 0,
5821  // Redis type: enum
5822  string noack = "",
5823  // Redis type: enum
5824  string streams = "",
5825  string key = "",
5826  string ID = ""
5827 ) {
5828  NWNXPushString("XREADGROUP");
5829  NWNXPushString(group_group);
5830  NWNXPushString(group_consumer);
5831  if (count_count != 0) NWNXPushString(IntToString(count_count));
5832  if (block_milliseconds != 0) NWNXPushString(IntToString(block_milliseconds));
5833  if (noack != "") NWNXPushString(noack);
5834  NWNXPushString(streams);
5835  NWNXPushString(key);
5836  NWNXPushString(ID);
5837  NWNXCall("NWNX_Redis", "Deferred");
5838  return NWNXPopInt();
5839 }
5840 
5841 int XACK(
5842  string key,
5843  string group,
5844  string ID
5845 ) {
5846  NWNXPushString("XACK");
5847  NWNXPushString(key);
5848  NWNXPushString(group);
5849  NWNXPushString(ID);
5850  NWNXCall("NWNX_Redis", "Deferred");
5851  return NWNXPopInt();
5852 }
5853 
5855  string key,
5856  string group,
5857  string consumer,
5858  string min_idle_time,
5859  string ID,
5860  // Redis type: integer
5861  int idle_ms = 0,
5862  // Redis type: integer
5863  int time_ms_unix_time = 0,
5864  // Redis type: integer
5865  int retrycount_count = 0
5866 ) {
5867  NWNXPushString("XCLAIM");
5868  NWNXPushString(key);
5869  NWNXPushString(group);
5870  NWNXPushString(consumer);
5871  NWNXPushString(min_idle_time);
5872  NWNXPushString(ID);
5873  if (idle_ms != 0) NWNXPushString(IntToString(idle_ms));
5874  if (time_ms_unix_time != 0) NWNXPushString(IntToString(time_ms_unix_time));
5875  if (retrycount_count != 0) NWNXPushString(IntToString(retrycount_count));
5876  NWNXCall("NWNX_Redis", "Deferred");
5877  return NWNXPopInt();
5878 }
5879 
5881  string key,
5882  string group,
5883  string start = "",
5884  string end = "",
5885  // Redis type: integer
5886  int count = 0,
5887  string consumer = ""
5888 ) {
5889  NWNXPushString("XPENDING");
5890  NWNXPushString(key);
5891  NWNXPushString(group);
5892  if (start != "") NWNXPushString(start);
5893  if (end != "") NWNXPushString(end);
5894  if (count != 0) NWNXPushString(IntToString(count));
5895  if (consumer != "") NWNXPushString(consumer);
5896  NWNXCall("NWNX_Redis", "Deferred");
5897  return NWNXPopInt();
5898 }
int EXPIREAT(string key, string timestamp)
int EVALSHA(string sha1, int numkeys, string key, string arg)
int COMMAND_COUNT()
int SORT(string key, string by_pattern="", int limit_offset=0, int limit_count=0, string get_pattern="", string order="", string sorting="", string store_destination="")
int DISCARD()
int ZRANGE(string key, int start, int stop, string withscores="")
int MEMORY_PURGE()
int BLPOP(string key, int timeout)
int SINTERSTORE(string destination, string key)
int ZINTERSTORE(string destination, int numkeys, string key, int weights_weight=0, string aggregate_aggregate="")
int LINDEX(string key, int index)
int HMSET(string key, string field, string value)
int HSCAN(string key, int cursor, string match_pattern="", int count_count=0)
int CLUSTER_COUNTKEYSINSLOT(int slot)
int BGSAVE()
int LPUSHX(string key, string value)
int HMGET(string key, string field)
int CLUSTER_INFO()
int HLEN(string key)
int XCLAIM(string key, string group, string consumer, string min_idle_time, string ID, int idle_ms=0, int time_ms_unix_time=0, int retrycount_count=0)
int EVAL(string script, int numkeys, string key, string arg)
int CONFIG_SET(string parameter, string value)
int CLUSTER_SLOTS()
int READONLY()
int SUNIONSTORE(string destination, string key)
int SISMEMBER(string key, string member)
int CLUSTER_FORGET(string node_id)
int CLUSTER_GETKEYSINSLOT(int slot, int count)
int GETSET(string key, string value)
int CLIENT_ID()
int STRLEN(string key)
int ZREVRANK(string key, string member)
int COMMAND_INFO(string command_name)
int SPOP(string key, int count=0)
int SETRANGE(string key, int offset, string value)
int XTRIM(string key, string strategy, string approx="", int count=0)
int BRPOPLPUSH(string source, string destination, int timeout)
int SETEX(string key, int seconds, string value)
int CLUSTER_KEYSLOT(string key)
int BITOP(string operation, string destkey, string key)
int INCR(string key)
int MEMORY_STATS()
int INFO(string section="")
int CLIENT_LIST()
int GEOADD(string key, float longitude, float latitude, string member)
int LLEN(string key)
int UNWATCH()
int XDEL(string key, string ID)
int WAIT(int numreplicas, int timeout)
int GET(string key)
int BRPOP(string key, int timeout)
int GEODIST(string key, string member1, string member2, string unit="")
int GEOHASH(string key, string member)
int XLEN(string key)
int CLIENT_KILL(string ip_port="", int id_client_id=0, string addr_ip_port="", string skipme_yes_no="")
int LTRIM(string key, int start, int stop)
int RENAMENX(string key, string newkey)
int SCRIPT_DEBUG(string mode)
int INCRBYFLOAT(string key, float increment)
int CLUSTER_REPLICATE(string node_id)
int LINSERT(string key, string where, string pivot, string value)
int PUBLISH(string channel, string message)
int CLIENT_UNBLOCK(string client_id, string unblock_type="")
int XADD(string key, string ID, string field, string str)
int BGREWRITEAOF()
int SCRIPT_LOAD(string script)
int TIME()
int MONITOR()
int ZINCRBY(string key, int increment, string member)
int SRANDMEMBER(string key, int count=0)
int ZUNIONSTORE(string destination, int numkeys, string key, int weights_weight=0, string aggregate_aggregate="")
int ZREMRANGEBYSCORE(string key, float min, float max)
int SET(string key, string value, string condition="")
int PFMERGE(string destkey, string sourcekey)
int PSETEX(string key, int milliseconds, string value)
int CLIENT_REPLY(string reply_mode)
int SELECT(int index)
int SHUTDOWN(string save_mode="")
int ZPOPMIN(string key, int count=0)
int INCRBY(string key, int increment)
int XREADGROUP(string group_group, string group_consumer, int count_count=0, int block_milliseconds=0, string noack="", string streams="", string key="", string ID="")
int ZREM(string key, string member)
int COMMAND_GETKEYS()
int TOUCH(string key)
int BZPOPMAX(string key, int timeout)
int SYNC()
int CLUSTER_FAILOVER(string options="")
int KEYS(string pattern)
int LRANGE(string key, int start, int stop)
int SDIFFSTORE(string destination, string key)
int CLUSTER_SAVECONFIG()
int GETBIT(string key, int offset)
int CONFIG_GET(string parameter)
int CLUSTER_COUNT_FAILURE_REPORTS(string node_id)
int CLUSTER_SETSLOT(int slot, string subcommand, string node_id="")
int DEBUG_SEGFAULT()
int RPUSHX(string key, string value)
int XRANGE(string key, string start, string end, int count_count=0)
int HINCRBY(string key, string field, int increment)
int CLUSTER_REPLICAS(string node_id)
int CLIENT_PAUSE(int timeout)
int TTL(string key)
int WATCH(string key)
int EXPIRE(string key, int seconds)
int TYPE(string key)
int SADD(string key, string member)
int CLUSTER_RESET(string reset_type="")
int XREVRANGE(string key, string end, string start, int count_count=0)
int SLAVEOF(string host, string port)
int HEXISTS(string key, string field)
int ZREVRANGEBYLEX(string key, string max, string min, int limit_offset=0, int limit_count=0)
int COMMAND()
int RESTORE(string key, int ttl, string serialized_value, string replace="", string absttl="", int idletime_seconds=0, int freq_frequency=0)
int SUNION(string key)
int LSET(string key, int index, string value)
int PFADD(string key, string element)
int ZRANGEBYSCORE(string key, float min, float max, string withscores="", int limit_offset=0, int limit_count=0)
int BZPOPMIN(string key, int timeout)
int HGETALL(string key)
int BITFIELD(string key, string get_type="", int get_offset=0, string set_type="", int set_offset=0, int set_value=0, string incrby_type="", int incrby_offset=0, int incrby_increment=0)
int ZPOPMAX(string key, int count=0)
int DEL(string key)
int MIGRATE(string host, string port, string key, int destination_db, int timeout, string copy="", string replace="", string auth_password="", string keys_key="")
int XREAD(int count_count=0, int block_milliseconds=0, string streams="", string key="", string ID="")
int LREM(string key, int count, string value)
int DBSIZE()
int HKEYS(string key)
int MSETNX(string key, string value)
int GEORADIUS(string key, float longitude, float latitude, float radius, string unit, string withcoord="", string withdist="", string withhash="", int count_count=0, string order="", string store_key="", string storedist_key="")
int ZSCAN(string key, int cursor, string match_pattern="", int count_count=0)
int MSET(string key, string value)
int ECHO(string message)
int HSTRLEN(string key, string field)
int DECRBY(string key, int decrement)
int ZADD(string key, string condition="", string change="", string increment="", float score=0.0, string member="")
int CONFIG_RESETSTAT()
int LPUSH(string key, string value)
int REPLICAOF(string host, string port)
int UNLINK(string key)
int PEXPIREAT(string key, string milliseconds_timestamp)
int PERSIST(string key)
int CLIENT_SETNAME(string connection_name)
int MEMORY_HELP()
int HGET(string key, string field)
int XACK(string key, string group, string ID)
int EXEC()
int READWRITE()
int MEMORY_DOCTOR()
int PING(string message="")
int CLIENT_GETNAME()
int ZSCORE(string key, string member)
int ZREMRANGEBYLEX(string key, string min, string max)
int PFCOUNT(string key)
int SCAN(int cursor, string match_pattern="", int count_count=0, string type_type="")
int ZCOUNT(string key, float min, float max)
int FLUSHDB(string async="")
int SETBIT(string key, int offset, string value)
int ROLE()
int HDEL(string key, string field)
int CLUSTER_SLAVES(string node_id)
int SINTER(string key)
int DUMP(string key)
int SDIFF(string key)
int QUIT()
int ZREMRANGEBYRANK(string key, int start, int stop)
int APPEND(string key, string value)
int ZREVRANGE(string key, int start, int stop, string withscores="")
int LPOP(string key)
int FLUSHALL(string async="")
int HSET(string key, string field, string value)
int ZRANGEBYLEX(string key, string min, string max, int limit_offset=0, int limit_count=0)
int AUTH(string password)
int RPOPLPUSH(string source, string destination)
int HINCRBYFLOAT(string key, string field, float increment)
int XINFO(string consumers_key="", string consumers_groupname="", string groups_key="", string stream_key="", string help="")
int SCRIPT_KILL()
int SCRIPT_EXISTS(string sha1)
int SCRIPT_FLUSH()
int XGROUP(string create_key="", string create_groupname="", string create_id_or__="", string setid_key="", string setid_groupname="", string setid_id_or__="", string destroy_key="", string destroy_groupname="", string delconsumer_key="", string delconsumer_groupname="", string delconsumer_consumername="")
int RPOP(string key)
int SETNX(string key, string value)
int CLUSTER_NODES()
int HSETNX(string key, string field, string value)
int GETRANGE(string key, int start, int end)
int PEXPIRE(string key, int milliseconds)
int CLUSTER_DELSLOTS(int slot)
int SSCAN(string key, int cursor, string match_pattern="", int count_count=0)
int MEMORY_USAGE(string key, int samples_count=0)
int SLOWLOG(string subcommand, string argument="")
int BITPOS(string key, int bit, int start=0, int end=0)
int MEMORY_MALLOC_STATS()
int ZREVRANGEBYSCORE(string key, float max, float min, string withscores="", int limit_offset=0, int limit_count=0)
int OBJECT(string subcommand, string arguments="")
int MGET(string key)
int CLUSTER_ADDSLOTS(int slot)
int RANDOMKEY()
int SREM(string key, string member)
int GEORADIUSBYMEMBER(string key, string member, float radius, string unit, string withcoord="", string withdist="", string withhash="", int count_count=0, string order="", string store_key="", string storedist_key="")
int MOVE(string key, int db)
int LASTSAVE()
int MULTI()
int PTTL(string key)
int XPENDING(string key, string group, string start="", string end="", int count=0, string consumer="")
int RENAME(string key, string newkey)
int BITCOUNT(string key, int start=0, int end=0)
int GEOPOS(string key, string member)
int SAVE()
int HVALS(string key)
int CONFIG_REWRITE()
int SMEMBERS(string key)
int CLUSTER_SET_CONFIG_EPOCH(int config_epoch)
int SMOVE(string source, string destination, string member)
int ZCARD(string key)
int CLUSTER_MEET(string ip, int port)
int DEBUG_OBJECT(string key)
int SWAPDB(int index, int index_1)
int PUBSUB(string subcommand, string argument="")
int ZRANK(string key, string member)
int RPUSH(string key, string value)
int DECR(string key)
int ZLEXCOUNT(string key, string min, string max)
int EXISTS(string key)
int SCARD(string key)