NWNX:EE  8193.37.14
nwnx_redis.nss
Go to the documentation of this file.
1 #include "nwnx_redis_lib"
7 
8 
9 // Skipping sub-command: BITFIELD/{"command"=>"OVERFLOW", "type"=>"enum", "enum"=>["WRAP", "SAT", "FAIL"], "optional"=>true} - not supported yet.
10 // Skipping sub-command: CLIENT_KILL/{"command"=>"TYPE", "type"=>"enum", "enum"=>["normal", "master", "slave", "pubsub"], "optional"=>true} - not supported yet.
11 // Skipping sub-command: CLIENT_LIST/{"command"=>"TYPE", "type"=>"enum", "enum"=>["normal", "master", "replica", "pubsub"], "optional"=>true} - not supported yet.
12 // Skipping sub-command: SET/{"command"=>"expiration", "type"=>"enum", "enum"=>["EX seconds", "PX milliseconds"], "optional"=>true} - not supported yet.
13 // Skipping XCLAIM, cannot parse argument: {"name"=>"force", "enum"=>["FORCE"], "optional"=>true} - not supported yet.
14 // Skipping XCLAIM, cannot parse argument: {"name"=>"justid", "enum"=>["JUSTID"], "optional"=>true} - not supported yet.
27  string key,
28  string value
29 );
30 
37 int NWNX_Redis_AUTH(
38  string password
39 );
40 
48 
55 int NWNX_Redis_BGSAVE();
56 
66  string key,
67  // Redis type: integer
68  int start = 0,
69  // Redis type: integer
70  int end = 0
71 );
72 
82  string key,
83  // Redis type: type
84  string get_type = "",
85  // Redis type: integer
86  int get_offset = 0,
87  // Redis type: type
88  string set_type = "",
89  // Redis type: integer
90  int set_offset = 0,
91  // Redis type: integer
92  int set_value = 0,
93  // Redis type: type
94  string incrby_type = "",
95  // Redis type: integer
96  int incrby_offset = 0,
97  // Redis type: integer
98  int incrby_increment = 0
99 );
100 
109 int NWNX_Redis_BITOP(
110  string operation,
111  // Redis type: key
112  string destkey,
113  string key
114 );
115 
125  string key,
126  // Redis type: integer
127  int bit,
128  // Redis type: integer
129  int start = 0,
130  // Redis type: integer
131  int end = 0
132 );
133 
142 int NWNX_Redis_BLPOP(
143  string key,
144  // Redis type: integer
145  int timeout
146 );
147 
156 int NWNX_Redis_BRPOP(
157  string key,
158  // Redis type: integer
159  int timeout
160 );
161 
171  // Redis type: key
172  string source,
173  // Redis type: key
174  string destination,
175  // Redis type: integer
176  int timeout
177 );
178 
188  string key,
189  // Redis type: integer
190  int timeout
191 );
192 
202  string key,
203  // Redis type: integer
204  int timeout
205 );
206 
216 
226  string ip_port = "",
227  // Redis type: integer
228  int id_client_id = 0,
229  string addr_ip_port = "",
230  string skipme_yes_no = ""
231 );
232 
242 
252 
262  // Redis type: integer
263  int timeout
264 );
265 
277  // Redis type: enum
278  string reply_mode
279 );
280 
290  string connection_name
291 );
292 
304  string client_id,
305  // Redis type: enum
306  string unblock_type = ""
307 );
308 
318  // Redis type: integer
319  int slot
320 );
321 
331  string node_id
332 );
333 
343  // Redis type: integer
344  int slot
345 );
346 
356  // Redis type: integer
357  int slot
358 );
359 
371  // Redis type: enum
372  string options = ""
373 );
374 
384  string node_id
385 );
386 
396  // Redis type: integer
397  int slot,
398  // Redis type: integer
399  int count
400 );
401 
411 
421  string key
422 );
423 
433  string ip,
434  // Redis type: integer
435  int port
436 );
437 
447 
457  string node_id
458 );
459 
472  // Redis type: enum
473  string reset_type = ""
474 );
475 
485 
495  // Redis type: integer
496  int config_epoch
497 );
498 
510  // Redis type: integer
511  int slot,
512  // Redis type: enum
513  string subcommand,
514  string node_id = ""
515 );
516 
526  string node_id
527 );
528 
538  string node_id
539 );
540 
550 
559 int NWNX_Redis_COMMAND();
560 
570 
580 
590  string command_name
591 );
592 
600  string parameter
601 );
602 
610 
618  string parameter,
619  string value
620 );
621 
631 
638 int NWNX_Redis_DBSIZE();
639 
647  string key
648 );
649 
657 
666 int NWNX_Redis_DECR(
667  string key
668 );
669 
679  string key,
680  // Redis type: integer
681  int decrement
682 );
683 
695 int NWNX_Redis_DEL(
696  string key
697 );
698 
705 int NWNX_Redis_DISCARD();
706 
718 int NWNX_Redis_DUMP(
719  string key
720 );
721 
728 int NWNX_Redis_ECHO(
729  string message
730 );
731 
740 int NWNX_Redis_EVAL(
741  string script,
742  // Redis type: integer
743  int numkeys,
744  string key,
745  string arg
746 );
747 
757  string sha1,
758  // Redis type: integer
759  int numkeys,
760  string key,
761  string arg
762 );
763 
770 int NWNX_Redis_EXEC();
771 
781  string key
782 );
783 
793  string key,
794  // Redis type: integer
795  int seconds
796 );
797 
807  string key,
808  // Redis type: posix time
809  string timestamp
810 );
811 
821  // Redis type: enum
822  string async = ""
823 );
824 
834  // Redis type: enum
835  string async = ""
836 );
837 
848  string key,
849  // Redis type: double
850  float longitude,
851  // Redis type: double
852  float latitude,
853  string member
854 );
855 
866  string key,
867  string member
868 );
869 
880  string key,
881  string member
882 );
883 
893  string key,
894  string member1,
895  string member2,
896  string unit = ""
897 );
898 
920  string key,
921  // Redis type: double
922  float longitude,
923  // Redis type: double
924  float latitude,
925  // Redis type: double
926  float radius,
927  // Redis type: enum
928  string unit,
929  // Redis type: enum
930  string withcoord = "",
931  // Redis type: enum
932  string withdist = "",
933  // Redis type: enum
934  string withhash = "",
935  // Redis type: integer
936  int count_count = 0,
937  // Redis type: enum
938  string order = "",
939  // Redis type: key
940  string store_key = "",
941  // Redis type: key
942  string storedist_key = ""
943 );
944 
966  string key,
967  string member,
968  // Redis type: double
969  float radius,
970  // Redis type: enum
971  string unit,
972  // Redis type: enum
973  string withcoord = "",
974  // Redis type: enum
975  string withdist = "",
976  // Redis type: enum
977  string withhash = "",
978  // Redis type: integer
979  int count_count = 0,
980  // Redis type: enum
981  string order = "",
982  // Redis type: key
983  string store_key = "",
984  // Redis type: key
985  string storedist_key = ""
986 );
987 
996 int NWNX_Redis_GET(
997  string key
998 );
999 
1008 int NWNX_Redis_GETBIT(
1009  string key,
1010  // Redis type: integer
1011  int offset
1012 );
1013 
1026  string key,
1027  // Redis type: integer
1028  int start,
1029  // Redis type: integer
1030  int end
1031 );
1032 
1041 int NWNX_Redis_GETSET(
1042  string key,
1043  string value
1044 );
1045 
1054 int NWNX_Redis_HDEL(
1055  string key,
1056  string field
1057 );
1058 
1067 int NWNX_Redis_HEXISTS(
1068  string key,
1069  string field
1070 );
1071 
1080 int NWNX_Redis_HGET(
1081  string key,
1082  string field
1083 );
1084 
1093 int NWNX_Redis_HGETALL(
1094  string key
1095 );
1096 
1105 int NWNX_Redis_HINCRBY(
1106  string key,
1107  string field,
1108  // Redis type: integer
1109  int increment
1110 );
1111 
1121  string key,
1122  string field,
1123  // Redis type: double
1124  float increment
1125 );
1126 
1135 int NWNX_Redis_HKEYS(
1136  string key
1137 );
1138 
1147 int NWNX_Redis_HLEN(
1148  string key
1149 );
1150 
1159 int NWNX_Redis_HMGET(
1160  string key,
1161  string field
1162 );
1163 
1172 int NWNX_Redis_HMSET(
1173  string key,
1174  string field,
1175  string value
1176 );
1177 
1186 int NWNX_Redis_HSET(
1187  string key,
1188  string field,
1189  string value
1190 );
1191 
1200 int NWNX_Redis_HSETNX(
1201  string key,
1202  string field,
1203  string value
1204 );
1205 
1214 int NWNX_Redis_HSTRLEN(
1215  string key,
1216  string field
1217 );
1218 
1227 int NWNX_Redis_HVALS(
1228  string key
1229 );
1230 
1239 int NWNX_Redis_INCR(
1240  string key
1241 );
1242 
1251 int NWNX_Redis_INCRBY(
1252  string key,
1253  // Redis type: integer
1254  int increment
1255 );
1256 
1266  string key,
1267  // Redis type: double
1268  float increment
1269 );
1270 
1277 int NWNX_Redis_INFO(
1278  string section = ""
1279 );
1280 
1291 int NWNX_Redis_KEYS(
1292  string pattern
1293 );
1294 
1301 int NWNX_Redis_LASTSAVE();
1302 
1312 int NWNX_Redis_LINDEX(
1313  string key,
1314  // Redis type: integer
1315  int index
1316 );
1317 
1331 int NWNX_Redis_LINSERT(
1332  string key,
1333  // Redis type: enum
1334  string where,
1335  string pivot,
1336  string value
1337 );
1338 
1347 int NWNX_Redis_LLEN(
1348  string key
1349 );
1350 
1359 int NWNX_Redis_LPOP(
1360  string key
1361 );
1362 
1371 int NWNX_Redis_LPUSH(
1372  string key,
1373  string value
1374 );
1375 
1384 int NWNX_Redis_LPUSHX(
1385  string key,
1386  string value
1387 );
1388 
1399 int NWNX_Redis_LRANGE(
1400  string key,
1401  // Redis type: integer
1402  int start,
1403  // Redis type: integer
1404  int stop
1405 );
1406 
1415 int NWNX_Redis_LREM(
1416  string key,
1417  // Redis type: integer
1418  int count,
1419  string value
1420 );
1421 
1431 int NWNX_Redis_LSET(
1432  string key,
1433  // Redis type: integer
1434  int index,
1435  string value
1436 );
1437 
1446 int NWNX_Redis_LTRIM(
1447  string key,
1448  // Redis type: integer
1449  int start,
1450  // Redis type: integer
1451  int stop
1452 );
1453 
1461 
1469 
1477 
1485 
1493 
1503  string key,
1504  // Redis type: integer
1505  int samples_count = 0
1506 );
1507 
1516 int NWNX_Redis_MGET(
1517  string key
1518 );
1519 
1537 int NWNX_Redis_MIGRATE(
1538  string host,
1539  string port,
1540  // Redis type: enum
1541  string key,
1542  // Redis type: integer
1543  int destination_db,
1544  // Redis type: integer
1545  int timeout,
1546  // Redis type: enum
1547  string copy = "",
1548  // Redis type: enum
1549  string replace = "",
1550  string auth_password = "",
1551  // Redis type: key
1552  string keys_key = ""
1553 );
1554 
1561 int NWNX_Redis_MONITOR();
1562 
1571 int NWNX_Redis_MOVE(
1572  string key,
1573  // Redis type: integer
1574  int db
1575 );
1576 
1585 int NWNX_Redis_MSET(
1586  string key,
1587  string value
1588 );
1589 
1598 int NWNX_Redis_MSETNX(
1599  string key,
1600  string value
1601 );
1602 
1609 int NWNX_Redis_MULTI();
1610 
1619 int NWNX_Redis_OBJECT(
1620  string subcommand,
1621  string arguments = ""
1622 );
1623 
1632 int NWNX_Redis_PERSIST(
1633  string key
1634 );
1635 
1644 int NWNX_Redis_PEXPIRE(
1645  string key,
1646  // Redis type: integer
1647  int milliseconds
1648 );
1649 
1659  string key,
1660  // Redis type: posix time
1661  string milliseconds_timestamp
1662 );
1663 
1672 int NWNX_Redis_PFADD(
1673  string key,
1674  string element
1675 );
1676 
1687 int NWNX_Redis_PFCOUNT(
1688  string key
1689 );
1690 
1699 int NWNX_Redis_PFMERGE(
1700  // Redis type: key
1701  string destkey,
1702  // Redis type: key
1703  string sourcekey
1704 );
1705 
1712 int NWNX_Redis_PING(
1713  string message = ""
1714 );
1715 
1724 int NWNX_Redis_PSETEX(
1725  string key,
1726  // Redis type: integer
1727  int milliseconds,
1728  string value
1729 );
1730 
1742 int NWNX_Redis_PUBSUB(
1743  string subcommand,
1744  string argument = ""
1745 );
1746 
1755 int NWNX_Redis_PTTL(
1756  string key
1757 );
1758 
1768 int NWNX_Redis_PUBLISH(
1769  string channel,
1770  string message
1771 );
1772 
1779 int NWNX_Redis_QUIT();
1780 
1789 int NWNX_Redis_RANDOMKEY();
1790 
1799 int NWNX_Redis_READONLY();
1800 
1809 int NWNX_Redis_READWRITE();
1810 
1819 int NWNX_Redis_RENAME(
1820  string key,
1821  // Redis type: key
1822  string newkey
1823 );
1824 
1834  string key,
1835  // Redis type: key
1836  string newkey
1837 );
1838 
1856 int NWNX_Redis_RESTORE(
1857  string key,
1858  // Redis type: integer
1859  int ttl,
1860  string serialized_value,
1861  // Redis type: enum
1862  string replace = "",
1863  // Redis type: enum
1864  string absttl = "",
1865  // Redis type: integer
1866  int idletime_seconds = 0,
1867  // Redis type: integer
1868  int freq_frequency = 0
1869 );
1870 
1877 int NWNX_Redis_ROLE();
1878 
1887 int NWNX_Redis_RPOP(
1888  string key
1889 );
1890 
1900  // Redis type: key
1901  string source,
1902  // Redis type: key
1903  string destination
1904 );
1905 
1914 int NWNX_Redis_RPUSH(
1915  string key,
1916  string value
1917 );
1918 
1927 int NWNX_Redis_RPUSHX(
1928  string key,
1929  string value
1930 );
1931 
1941 int NWNX_Redis_SADD(
1942  string key,
1943  string member
1944 );
1945 
1952 int NWNX_Redis_SAVE();
1953 
1962 int NWNX_Redis_SCARD(
1963  string key
1964 );
1965 
1977  // Redis type: enum
1978  string mode
1979 );
1980 
1991  string sha1
1992 );
1993 
2003 
2013 
2023  string script
2024 );
2025 
2034 int NWNX_Redis_SDIFF(
2035  string key
2036 );
2037 
2047  // Redis type: key
2048  string destination,
2049  string key
2050 );
2051 
2058 int NWNX_Redis_SELECT(
2059  // Redis type: integer
2060  int index
2061 );
2062 
2073 int NWNX_Redis_SET(
2074  string key,
2075  string value,
2076  // Redis type: enum
2077  string condition = ""
2078 );
2079 
2088 int NWNX_Redis_SETBIT(
2089  string key,
2090  // Redis type: integer
2091  int offset,
2092  string value
2093 );
2094 
2103 int NWNX_Redis_SETEX(
2104  string key,
2105  // Redis type: integer
2106  int seconds,
2107  string value
2108 );
2109 
2118 int NWNX_Redis_SETNX(
2119  string key,
2120  string value
2121 );
2122 
2134  string key,
2135  // Redis type: integer
2136  int offset,
2137  string value
2138 );
2139 
2149  // Redis type: enum
2150  string save_mode = ""
2151 );
2152 
2162 int NWNX_Redis_SINTER(
2163  string key
2164 );
2165 
2176  // Redis type: key
2177  string destination,
2178  string key
2179 );
2180 
2190  string key,
2191  string member
2192 );
2193 
2200 int NWNX_Redis_SLAVEOF(
2201  string host,
2202  string port
2203 );
2204 
2212  string host,
2213  string port
2214 );
2215 
2222 int NWNX_Redis_SLOWLOG(
2223  string subcommand,
2224  string argument = ""
2225 );
2226 
2236  string key
2237 );
2238 
2247 int NWNX_Redis_SMOVE(
2248  // Redis type: key
2249  string source,
2250  // Redis type: key
2251  string destination,
2252  string member
2253 );
2254 
2270 int NWNX_Redis_SORT(
2271  string key,
2272  // Redis type: pattern
2273  string by_pattern = "",
2274  // Redis type: integer
2275  int limit_offset = 0,
2276  // Redis type: integer
2277  int limit_count = 0,
2278  string get_pattern = "",
2279  // Redis type: enum
2280  string order = "",
2281  // Redis type: enum
2282  string sorting = "",
2283  // Redis type: key
2284  string store_destination = ""
2285 );
2286 
2295 int NWNX_Redis_SPOP(
2296  string key,
2297  // Redis type: integer
2298  int count = 0
2299 );
2300 
2311  string key,
2312  // Redis type: integer
2313  int count = 0
2314 );
2315 
2324 int NWNX_Redis_SREM(
2325  string key,
2326  string member
2327 );
2328 
2337 int NWNX_Redis_STRLEN(
2338  string key
2339 );
2340 
2349 int NWNX_Redis_SUNION(
2350  string key
2351 );
2352 
2362  // Redis type: key
2363  string destination,
2364  string key
2365 );
2366 
2373 int NWNX_Redis_SWAPDB(
2374  // Redis type: integer
2375  int index,
2376  // Redis type: integer
2377  int index_1
2378 );
2379 
2386 int NWNX_Redis_SYNC();
2387 
2396 int NWNX_Redis_TIME();
2397 
2406 int NWNX_Redis_TOUCH(
2407  string key
2408 );
2409 
2418 int NWNX_Redis_TTL(
2419  string key
2420 );
2421 
2430 int NWNX_Redis_TYPE(
2431  string key
2432 );
2433 
2444 int NWNX_Redis_UNLINK(
2445  string key
2446 );
2447 
2456 int NWNX_Redis_UNWATCH();
2457 
2466 int NWNX_Redis_WAIT(
2467  // Redis type: integer
2468  int numreplicas,
2469  // Redis type: integer
2470  int timeout
2471 );
2472 
2481 int NWNX_Redis_WATCH(
2482  string key
2483 );
2484 
2500 int NWNX_Redis_ZADD(
2501  string key,
2502  // Redis type: enum
2503  string condition = "",
2504  // Redis type: enum
2505  string change = "",
2506  // Redis type: enum
2507  string increment = "",
2508  // Redis type: double
2509  float score = 0.0,
2510  string member = ""
2511 );
2512 
2521 int NWNX_Redis_ZCARD(
2522  string key
2523 );
2524 
2533 int NWNX_Redis_ZCOUNT(
2534  string key,
2535  // Redis type: double
2536  float min,
2537  // Redis type: double
2538  float max
2539 );
2540 
2549 int NWNX_Redis_ZINCRBY(
2550  string key,
2551  // Redis type: integer
2552  int increment,
2553  string member
2554 );
2555 
2569  // Redis type: key
2570  string destination,
2571  // Redis type: integer
2572  int numkeys,
2573  string key,
2574  // Redis type: integer
2575  int weights_weight = 0,
2576  // Redis type: enum
2577  string aggregate_aggregate = ""
2578 );
2579 
2589  string key,
2590  string min,
2591  string max
2592 );
2593 
2603 int NWNX_Redis_ZPOPMAX(
2604  string key,
2605  // Redis type: integer
2606  int count = 0
2607 );
2608 
2618 int NWNX_Redis_ZPOPMIN(
2619  string key,
2620  // Redis type: integer
2621  int count = 0
2622 );
2623 
2635 int NWNX_Redis_ZRANGE(
2636  string key,
2637  // Redis type: integer
2638  int start,
2639  // Redis type: integer
2640  int stop,
2641  // Redis type: enum
2642  string withscores = ""
2643 );
2644 
2656  string key,
2657  string min,
2658  string max,
2659  // Redis type: integer
2660  int limit_offset = 0,
2661  // Redis type: integer
2662  int limit_count = 0
2663 );
2664 
2676  string key,
2677  string max,
2678  string min,
2679  // Redis type: integer
2680  int limit_offset = 0,
2681  // Redis type: integer
2682  int limit_count = 0
2683 );
2684 
2698  string key,
2699  // Redis type: double
2700  float min,
2701  // Redis type: double
2702  float max,
2703  // Redis type: enum
2704  string withscores = "",
2705  // Redis type: integer
2706  int limit_offset = 0,
2707  // Redis type: integer
2708  int limit_count = 0
2709 );
2710 
2719 int NWNX_Redis_ZRANK(
2720  string key,
2721  string member
2722 );
2723 
2733 int NWNX_Redis_ZREM(
2734  string key,
2735  string member
2736 );
2737 
2748  string key,
2749  string min,
2750  string max
2751 );
2752 
2763  string key,
2764  // Redis type: integer
2765  int start,
2766  // Redis type: integer
2767  int stop
2768 );
2769 
2780  string key,
2781  // Redis type: double
2782  float min,
2783  // Redis type: double
2784  float max
2785 );
2786 
2799  string key,
2800  // Redis type: integer
2801  int start,
2802  // Redis type: integer
2803  int stop,
2804  // Redis type: enum
2805  string withscores = ""
2806 );
2807 
2821  string key,
2822  // Redis type: double
2823  float max,
2824  // Redis type: double
2825  float min,
2826  // Redis type: enum
2827  string withscores = "",
2828  // Redis type: integer
2829  int limit_offset = 0,
2830  // Redis type: integer
2831  int limit_count = 0
2832 );
2833 
2843  string key,
2844  string member
2845 );
2846 
2855 int NWNX_Redis_ZSCORE(
2856  string key,
2857  string member
2858 );
2859 
2872  // Redis type: key
2873  string destination,
2874  // Redis type: integer
2875  int numkeys,
2876  string key,
2877  // Redis type: integer
2878  int weights_weight = 0,
2879  // Redis type: enum
2880  string aggregate_aggregate = ""
2881 );
2882 
2893 int NWNX_Redis_SCAN(
2894  // Redis type: integer
2895  int cursor,
2896  // Redis type: pattern
2897  string match_pattern = "",
2898  // Redis type: integer
2899  int count_count = 0,
2900  string type_type = ""
2901 );
2902 
2913 int NWNX_Redis_SSCAN(
2914  string key,
2915  // Redis type: integer
2916  int cursor,
2917  // Redis type: pattern
2918  string match_pattern = "",
2919  // Redis type: integer
2920  int count_count = 0
2921 );
2922 
2933 int NWNX_Redis_HSCAN(
2934  string key,
2935  // Redis type: integer
2936  int cursor,
2937  // Redis type: pattern
2938  string match_pattern = "",
2939  // Redis type: integer
2940  int count_count = 0
2941 );
2942 
2953 int NWNX_Redis_ZSCAN(
2954  string key,
2955  // Redis type: integer
2956  int cursor,
2957  // Redis type: pattern
2958  string match_pattern = "",
2959  // Redis type: integer
2960  int count_count = 0
2961 );
2962 
2975 int NWNX_Redis_XINFO(
2976  // Redis type: key
2977  string consumers_key = "",
2978  string consumers_groupname = "",
2979  // Redis type: key
2980  string groups_key = "",
2981  // Redis type: key
2982  string stream_key = "",
2983  // Redis type: enum
2984  string help = ""
2985 );
2986 
2995 int NWNX_Redis_XADD(
2996  string key,
2997  string ID,
2998  // Redis type: value
2999  string field,
3000  string str
3001 );
3002 
3017 int NWNX_Redis_XTRIM(
3018  string key,
3019  // Redis type: enum
3020  string strategy,
3021  // Redis type: enum
3022  string approx = "",
3023  // Redis type: integer
3024  int count = 0
3025 );
3026 
3036 int NWNX_Redis_XDEL(
3037  string key,
3038  string ID
3039 );
3040 
3051 int NWNX_Redis_XRANGE(
3052  string key,
3053  string start,
3054  string end,
3055  // Redis type: integer
3056  int count_count = 0
3057 );
3058 
3070  string key,
3071  string end,
3072  string start,
3073  // Redis type: integer
3074  int count_count = 0
3075 );
3076 
3085 int NWNX_Redis_XLEN(
3086  string key
3087 );
3088 
3102 int NWNX_Redis_XREAD(
3103  // Redis type: integer
3104  int count_count = 0,
3105  // Redis type: integer
3106  int block_milliseconds = 0,
3107  // Redis type: enum
3108  string streams = "",
3109  string key = "",
3110  string ID = ""
3111 );
3112 
3123 int NWNX_Redis_XGROUP(
3124  // Redis type: key
3125  string create_key = "",
3126  string create_groupname = "",
3127  string create_id_or__ = "",
3128  // Redis type: key
3129  string setid_key = "",
3130  string setid_groupname = "",
3131  string setid_id_or__ = "",
3132  // Redis type: key
3133  string destroy_key = "",
3134  string destroy_groupname = "",
3135  // Redis type: key
3136  string delconsumer_key = "",
3137  string delconsumer_groupname = "",
3138  string delconsumer_consumername = ""
3139 );
3140 
3158  string group_group,
3159  string group_consumer,
3160  // Redis type: integer
3161  int count_count = 0,
3162  // Redis type: integer
3163  int block_milliseconds = 0,
3164  // Redis type: enum
3165  string noack = "",
3166  // Redis type: enum
3167  string streams = "",
3168  string key = "",
3169  string ID = ""
3170 );
3171 
3180 int NWNX_Redis_XACK(
3181  string key,
3182  string group,
3183  string ID
3184 );
3185 
3195 int NWNX_Redis_XCLAIM(
3196  string key,
3197  string group,
3198  string consumer,
3199  string min_idle_time,
3200  string ID,
3201  // Redis type: integer
3202  int idle_ms = 0,
3203  // Redis type: integer
3204  int time_ms_unix_time = 0,
3205  // Redis type: integer
3206  int retrycount_count = 0
3207 );
3208 
3221  string key,
3222  string group,
3223  string start = "",
3224  string end = "",
3225  // Redis type: integer
3226  int count = 0,
3227  string consumer = ""
3228 );
3229 
3230 
3231 
3232 // Implementation below
3234  string key,
3235  string value
3236 ) {
3237  NWNXPushString("APPEND");
3238  NWNXPushString(key);
3239  NWNXPushString(value);
3240  NWNXCall("NWNX_Redis", "Deferred");
3241  return NWNXPopInt();
3242 }
3243 
3245  string password
3246 ) {
3247  NWNXPushString("AUTH");
3248  NWNXPushString(password);
3249  NWNXCall("NWNX_Redis", "Deferred");
3250  return NWNXPopInt();
3251 }
3252 
3254  NWNXPushString("BGREWRITEAOF");
3255  NWNXCall("NWNX_Redis", "Deferred");
3256  return NWNXPopInt();
3257 }
3258 
3260  NWNXPushString("BGSAVE");
3261  NWNXCall("NWNX_Redis", "Deferred");
3262  return NWNXPopInt();
3263 }
3264 
3266  string key,
3267  // Redis type: integer
3268  int start = 0,
3269  // Redis type: integer
3270  int end = 0
3271 ) {
3272  NWNXPushString("BITCOUNT");
3273  NWNXPushString(key);
3274  if (start != 0) NWNXPushString(IntToString(start));
3275  if (end != 0) NWNXPushString(IntToString(end));
3276  NWNXCall("NWNX_Redis", "Deferred");
3277  return NWNXPopInt();
3278 }
3279 
3281  string key,
3282  // Redis type: type
3283  string get_type = "",
3284  // Redis type: integer
3285  int get_offset = 0,
3286  // Redis type: type
3287  string set_type = "",
3288  // Redis type: integer
3289  int set_offset = 0,
3290  // Redis type: integer
3291  int set_value = 0,
3292  // Redis type: type
3293  string incrby_type = "",
3294  // Redis type: integer
3295  int incrby_offset = 0,
3296  // Redis type: integer
3297  int incrby_increment = 0
3298 ) {
3299  NWNXPushString("BITFIELD");
3300  NWNXPushString(key);
3301  if (get_type != "") NWNXPushString(get_type);
3302  if (get_offset != 0) NWNXPushString(IntToString(get_offset));
3303  if (set_type != "") NWNXPushString(set_type);
3304  if (set_offset != 0) NWNXPushString(IntToString(set_offset));
3305  if (set_value != 0) NWNXPushString(IntToString(set_value));
3306  if (incrby_type != "") NWNXPushString(incrby_type);
3307  if (incrby_offset != 0) NWNXPushString(IntToString(incrby_offset));
3308  if (incrby_increment != 0) NWNXPushString(IntToString(incrby_increment));
3309  NWNXCall("NWNX_Redis", "Deferred");
3310  return NWNXPopInt();
3311 }
3312 
3314  string operation,
3315  // Redis type: key
3316  string destkey,
3317  string key
3318 ) {
3319  NWNXPushString("BITOP");
3320  NWNXPushString(operation);
3321  NWNXPushString(destkey);
3322  NWNXPushString(key);
3323  NWNXCall("NWNX_Redis", "Deferred");
3324  return NWNXPopInt();
3325 }
3326 
3328  string key,
3329  // Redis type: integer
3330  int bit,
3331  // Redis type: integer
3332  int start = 0,
3333  // Redis type: integer
3334  int end = 0
3335 ) {
3336  NWNXPushString("BITPOS");
3337  NWNXPushString(key);
3338  NWNXPushString(IntToString(bit));
3339  if (start != 0) NWNXPushString(IntToString(start));
3340  if (end != 0) NWNXPushString(IntToString(end));
3341  NWNXCall("NWNX_Redis", "Deferred");
3342  return NWNXPopInt();
3343 }
3344 
3346  string key,
3347  // Redis type: integer
3348  int timeout
3349 ) {
3350  NWNXPushString("BLPOP");
3351  NWNXPushString(key);
3352  NWNXPushString(IntToString(timeout));
3353  NWNXCall("NWNX_Redis", "Deferred");
3354  return NWNXPopInt();
3355 }
3356 
3358  string key,
3359  // Redis type: integer
3360  int timeout
3361 ) {
3362  NWNXPushString("BRPOP");
3363  NWNXPushString(key);
3364  NWNXPushString(IntToString(timeout));
3365  NWNXCall("NWNX_Redis", "Deferred");
3366  return NWNXPopInt();
3367 }
3368 
3370  // Redis type: key
3371  string source,
3372  // Redis type: key
3373  string destination,
3374  // Redis type: integer
3375  int timeout
3376 ) {
3377  NWNXPushString("BRPOPLPUSH");
3378  NWNXPushString(source);
3379  NWNXPushString(destination);
3380  NWNXPushString(IntToString(timeout));
3381  NWNXCall("NWNX_Redis", "Deferred");
3382  return NWNXPopInt();
3383 }
3384 
3386  string key,
3387  // Redis type: integer
3388  int timeout
3389 ) {
3390  NWNXPushString("BZPOPMIN");
3391  NWNXPushString(key);
3392  NWNXPushString(IntToString(timeout));
3393  NWNXCall("NWNX_Redis", "Deferred");
3394  return NWNXPopInt();
3395 }
3396 
3398  string key,
3399  // Redis type: integer
3400  int timeout
3401 ) {
3402  NWNXPushString("BZPOPMAX");
3403  NWNXPushString(key);
3404  NWNXPushString(IntToString(timeout));
3405  NWNXCall("NWNX_Redis", "Deferred");
3406  return NWNXPopInt();
3407 }
3408 
3410  NWNXPushString("CLIENT_ID");
3411  NWNXCall("NWNX_Redis", "Deferred");
3412  return NWNXPopInt();
3413 }
3414 
3416  string ip_port = "",
3417  // Redis type: integer
3418  int id_client_id = 0,
3419  string addr_ip_port = "",
3420  string skipme_yes_no = ""
3421 ) {
3422  NWNXPushString("CLIENT_KILL");
3423  if (ip_port != "") NWNXPushString(ip_port);
3424  if (id_client_id != 0) NWNXPushString(IntToString(id_client_id));
3425  if (addr_ip_port != "") NWNXPushString(addr_ip_port);
3426  if (skipme_yes_no != "") NWNXPushString(skipme_yes_no);
3427  NWNXCall("NWNX_Redis", "Deferred");
3428  return NWNXPopInt();
3429 }
3430 
3432  NWNXPushString("CLIENT_LIST");
3433  NWNXCall("NWNX_Redis", "Deferred");
3434  return NWNXPopInt();
3435 }
3436 
3438  NWNXPushString("CLIENT_GETNAME");
3439  NWNXCall("NWNX_Redis", "Deferred");
3440  return NWNXPopInt();
3441 }
3442 
3444  // Redis type: integer
3445  int timeout
3446 ) {
3447  NWNXPushString("CLIENT_PAUSE");
3448  NWNXPushString(IntToString(timeout));
3449  NWNXCall("NWNX_Redis", "Deferred");
3450  return NWNXPopInt();
3451 }
3452 
3454  // Redis type: enum
3455  string reply_mode
3456 ) {
3457  NWNXPushString("CLIENT_REPLY");
3458  NWNXPushString(reply_mode);
3459  NWNXCall("NWNX_Redis", "Deferred");
3460  return NWNXPopInt();
3461 }
3462 
3464  string connection_name
3465 ) {
3466  NWNXPushString("CLIENT_SETNAME");
3467  NWNXPushString(connection_name);
3468  NWNXCall("NWNX_Redis", "Deferred");
3469  return NWNXPopInt();
3470 }
3471 
3473  string client_id,
3474  // Redis type: enum
3475  string unblock_type = ""
3476 ) {
3477  NWNXPushString("CLIENT_UNBLOCK");
3478  NWNXPushString(client_id);
3479  if (unblock_type != "") NWNXPushString(unblock_type);
3480  NWNXCall("NWNX_Redis", "Deferred");
3481  return NWNXPopInt();
3482 }
3483 
3485  // Redis type: integer
3486  int slot
3487 ) {
3488  NWNXPushString("CLUSTER_ADDSLOTS");
3489  NWNXPushString(IntToString(slot));
3490  NWNXCall("NWNX_Redis", "Deferred");
3491  return NWNXPopInt();
3492 }
3493 
3495  string node_id
3496 ) {
3497  NWNXPushString("CLUSTER_COUNT_FAILURE_REPORTS");
3498  NWNXPushString(node_id);
3499  NWNXCall("NWNX_Redis", "Deferred");
3500  return NWNXPopInt();
3501 }
3502 
3504  // Redis type: integer
3505  int slot
3506 ) {
3507  NWNXPushString("CLUSTER_COUNTKEYSINSLOT");
3508  NWNXPushString(IntToString(slot));
3509  NWNXCall("NWNX_Redis", "Deferred");
3510  return NWNXPopInt();
3511 }
3512 
3514  // Redis type: integer
3515  int slot
3516 ) {
3517  NWNXPushString("CLUSTER_DELSLOTS");
3518  NWNXPushString(IntToString(slot));
3519  NWNXCall("NWNX_Redis", "Deferred");
3520  return NWNXPopInt();
3521 }
3522 
3524  // Redis type: enum
3525  string options = ""
3526 ) {
3527  NWNXPushString("CLUSTER_FAILOVER");
3528  if (options != "") NWNXPushString(options);
3529  NWNXCall("NWNX_Redis", "Deferred");
3530  return NWNXPopInt();
3531 }
3532 
3534  string node_id
3535 ) {
3536  NWNXPushString("CLUSTER_FORGET");
3537  NWNXPushString(node_id);
3538  NWNXCall("NWNX_Redis", "Deferred");
3539  return NWNXPopInt();
3540 }
3541 
3543  // Redis type: integer
3544  int slot,
3545  // Redis type: integer
3546  int count
3547 ) {
3548  NWNXPushString("CLUSTER_GETKEYSINSLOT");
3549  NWNXPushString(IntToString(slot));
3550  NWNXPushString(IntToString(count));
3551  NWNXCall("NWNX_Redis", "Deferred");
3552  return NWNXPopInt();
3553 }
3554 
3556  NWNXPushString("CLUSTER_INFO");
3557  NWNXCall("NWNX_Redis", "Deferred");
3558  return NWNXPopInt();
3559 }
3560 
3562  string key
3563 ) {
3564  NWNXPushString("CLUSTER_KEYSLOT");
3565  NWNXPushString(key);
3566  NWNXCall("NWNX_Redis", "Deferred");
3567  return NWNXPopInt();
3568 }
3569 
3571  string ip,
3572  // Redis type: integer
3573  int port
3574 ) {
3575  NWNXPushString("CLUSTER_MEET");
3576  NWNXPushString(ip);
3577  NWNXPushString(IntToString(port));
3578  NWNXCall("NWNX_Redis", "Deferred");
3579  return NWNXPopInt();
3580 }
3581 
3583  NWNXPushString("CLUSTER_NODES");
3584  NWNXCall("NWNX_Redis", "Deferred");
3585  return NWNXPopInt();
3586 }
3587 
3589  string node_id
3590 ) {
3591  NWNXPushString("CLUSTER_REPLICATE");
3592  NWNXPushString(node_id);
3593  NWNXCall("NWNX_Redis", "Deferred");
3594  return NWNXPopInt();
3595 }
3596 
3598  // Redis type: enum
3599  string reset_type = ""
3600 ) {
3601  NWNXPushString("CLUSTER_RESET");
3602  if (reset_type != "") NWNXPushString(reset_type);
3603  NWNXCall("NWNX_Redis", "Deferred");
3604  return NWNXPopInt();
3605 }
3606 
3608  NWNXPushString("CLUSTER_SAVECONFIG");
3609  NWNXCall("NWNX_Redis", "Deferred");
3610  return NWNXPopInt();
3611 }
3612 
3614  // Redis type: integer
3615  int config_epoch
3616 ) {
3617  NWNXPushString("CLUSTER_SET_CONFIG_EPOCH");
3618  NWNXPushString(IntToString(config_epoch));
3619  NWNXCall("NWNX_Redis", "Deferred");
3620  return NWNXPopInt();
3621 }
3622 
3624  // Redis type: integer
3625  int slot,
3626  // Redis type: enum
3627  string subcommand,
3628  string node_id = ""
3629 ) {
3630  NWNXPushString("CLUSTER_SETSLOT");
3631  NWNXPushString(IntToString(slot));
3632  NWNXPushString(subcommand);
3633  if (node_id != "") NWNXPushString(node_id);
3634  NWNXCall("NWNX_Redis", "Deferred");
3635  return NWNXPopInt();
3636 }
3637 
3639  string node_id
3640 ) {
3641  NWNXPushString("CLUSTER_SLAVES");
3642  NWNXPushString(node_id);
3643  NWNXCall("NWNX_Redis", "Deferred");
3644  return NWNXPopInt();
3645 }
3646 
3648  string node_id
3649 ) {
3650  NWNXPushString("CLUSTER_REPLICAS");
3651  NWNXPushString(node_id);
3652  NWNXCall("NWNX_Redis", "Deferred");
3653  return NWNXPopInt();
3654 }
3655 
3657  NWNXPushString("CLUSTER_SLOTS");
3658  NWNXCall("NWNX_Redis", "Deferred");
3659  return NWNXPopInt();
3660 }
3661 
3663  NWNXPushString("COMMAND");
3664  NWNXCall("NWNX_Redis", "Deferred");
3665  return NWNXPopInt();
3666 }
3667 
3669  NWNXPushString("COMMAND_COUNT");
3670  NWNXCall("NWNX_Redis", "Deferred");
3671  return NWNXPopInt();
3672 }
3673 
3675  NWNXPushString("COMMAND_GETKEYS");
3676  NWNXCall("NWNX_Redis", "Deferred");
3677  return NWNXPopInt();
3678 }
3679 
3681  string command_name
3682 ) {
3683  NWNXPushString("COMMAND_INFO");
3684  NWNXPushString(command_name);
3685  NWNXCall("NWNX_Redis", "Deferred");
3686  return NWNXPopInt();
3687 }
3688 
3690  string parameter
3691 ) {
3692  NWNXPushString("CONFIG_GET");
3693  NWNXPushString(parameter);
3694  NWNXCall("NWNX_Redis", "Deferred");
3695  return NWNXPopInt();
3696 }
3697 
3699  NWNXPushString("CONFIG_REWRITE");
3700  NWNXCall("NWNX_Redis", "Deferred");
3701  return NWNXPopInt();
3702 }
3703 
3705  string parameter,
3706  string value
3707 ) {
3708  NWNXPushString("CONFIG_SET");
3709  NWNXPushString(parameter);
3710  NWNXPushString(value);
3711  NWNXCall("NWNX_Redis", "Deferred");
3712  return NWNXPopInt();
3713 }
3714 
3716  NWNXPushString("CONFIG_RESETSTAT");
3717  NWNXCall("NWNX_Redis", "Deferred");
3718  return NWNXPopInt();
3719 }
3720 
3722  NWNXPushString("DBSIZE");
3723  NWNXCall("NWNX_Redis", "Deferred");
3724  return NWNXPopInt();
3725 }
3726 
3728  string key
3729 ) {
3730  NWNXPushString("DEBUG_OBJECT");
3731  NWNXPushString(key);
3732  NWNXCall("NWNX_Redis", "Deferred");
3733  return NWNXPopInt();
3734 }
3735 
3737  NWNXPushString("DEBUG_SEGFAULT");
3738  NWNXCall("NWNX_Redis", "Deferred");
3739  return NWNXPopInt();
3740 }
3741 
3743  string key
3744 ) {
3745  NWNXPushString("DECR");
3746  NWNXPushString(key);
3747  NWNXCall("NWNX_Redis", "Deferred");
3748  return NWNXPopInt();
3749 }
3750 
3752  string key,
3753  // Redis type: integer
3754  int decrement
3755 ) {
3756  NWNXPushString("DECRBY");
3757  NWNXPushString(key);
3758  NWNXPushString(IntToString(decrement));
3759  NWNXCall("NWNX_Redis", "Deferred");
3760  return NWNXPopInt();
3761 }
3762 
3764  string key
3765 ) {
3766  NWNXPushString("DEL");
3767  NWNXPushString(key);
3768  NWNXCall("NWNX_Redis", "Deferred");
3769  return NWNXPopInt();
3770 }
3771 
3773  NWNXPushString("DISCARD");
3774  NWNXCall("NWNX_Redis", "Deferred");
3775  return NWNXPopInt();
3776 }
3777 
3779  string key
3780 ) {
3781  NWNXPushString("DUMP");
3782  NWNXPushString(key);
3783  NWNXCall("NWNX_Redis", "Deferred");
3784  return NWNXPopInt();
3785 }
3786 
3788  string message
3789 ) {
3790  NWNXPushString("ECHO");
3791  NWNXPushString(message);
3792  NWNXCall("NWNX_Redis", "Deferred");
3793  return NWNXPopInt();
3794 }
3795 
3797  string script,
3798  // Redis type: integer
3799  int numkeys,
3800  string key,
3801  string arg
3802 ) {
3803  NWNXPushString("EVAL");
3804  NWNXPushString(script);
3805  NWNXPushString(IntToString(numkeys));
3806  NWNXPushString(key);
3807  NWNXPushString(arg);
3808  NWNXCall("NWNX_Redis", "Deferred");
3809  return NWNXPopInt();
3810 }
3811 
3813  string sha1,
3814  // Redis type: integer
3815  int numkeys,
3816  string key,
3817  string arg
3818 ) {
3819  NWNXPushString("EVALSHA");
3820  NWNXPushString(sha1);
3821  NWNXPushString(IntToString(numkeys));
3822  NWNXPushString(key);
3823  NWNXPushString(arg);
3824  NWNXCall("NWNX_Redis", "Deferred");
3825  return NWNXPopInt();
3826 }
3827 
3829  NWNXPushString("EXEC");
3830  NWNXCall("NWNX_Redis", "Deferred");
3831  return NWNXPopInt();
3832 }
3833 
3835  string key
3836 ) {
3837  NWNXPushString("EXISTS");
3838  NWNXPushString(key);
3839  NWNXCall("NWNX_Redis", "Deferred");
3840  return NWNXPopInt();
3841 }
3842 
3844  string key,
3845  // Redis type: integer
3846  int seconds
3847 ) {
3848  NWNXPushString("EXPIRE");
3849  NWNXPushString(key);
3850  NWNXPushString(IntToString(seconds));
3851  NWNXCall("NWNX_Redis", "Deferred");
3852  return NWNXPopInt();
3853 }
3854 
3856  string key,
3857  // Redis type: posix time
3858  string timestamp
3859 ) {
3860  NWNXPushString("EXPIREAT");
3861  NWNXPushString(key);
3862  NWNXPushString(timestamp);
3863  NWNXCall("NWNX_Redis", "Deferred");
3864  return NWNXPopInt();
3865 }
3866 
3868  // Redis type: enum
3869  string async = ""
3870 ) {
3871  NWNXPushString("FLUSHALL");
3872  if (async != "") NWNXPushString(async);
3873  NWNXCall("NWNX_Redis", "Deferred");
3874  return NWNXPopInt();
3875 }
3876 
3878  // Redis type: enum
3879  string async = ""
3880 ) {
3881  NWNXPushString("FLUSHDB");
3882  if (async != "") NWNXPushString(async);
3883  NWNXCall("NWNX_Redis", "Deferred");
3884  return NWNXPopInt();
3885 }
3886 
3888  string key,
3889  // Redis type: double
3890  float longitude,
3891  // Redis type: double
3892  float latitude,
3893  string member
3894 ) {
3895  NWNXPushString("GEOADD");
3896  NWNXPushString(key);
3897  NWNXPushString(FloatToString(longitude, 0));
3898  NWNXPushString(FloatToString(latitude, 0));
3899  NWNXPushString(member);
3900  NWNXCall("NWNX_Redis", "Deferred");
3901  return NWNXPopInt();
3902 }
3903 
3905  string key,
3906  string member
3907 ) {
3908  NWNXPushString("GEOHASH");
3909  NWNXPushString(key);
3910  NWNXPushString(member);
3911  NWNXCall("NWNX_Redis", "Deferred");
3912  return NWNXPopInt();
3913 }
3914 
3916  string key,
3917  string member
3918 ) {
3919  NWNXPushString("GEOPOS");
3920  NWNXPushString(key);
3921  NWNXPushString(member);
3922  NWNXCall("NWNX_Redis", "Deferred");
3923  return NWNXPopInt();
3924 }
3925 
3927  string key,
3928  string member1,
3929  string member2,
3930  string unit = ""
3931 ) {
3932  NWNXPushString("GEODIST");
3933  NWNXPushString(key);
3934  NWNXPushString(member1);
3935  NWNXPushString(member2);
3936  if (unit != "") NWNXPushString(unit);
3937  NWNXCall("NWNX_Redis", "Deferred");
3938  return NWNXPopInt();
3939 }
3940 
3942  string key,
3943  // Redis type: double
3944  float longitude,
3945  // Redis type: double
3946  float latitude,
3947  // Redis type: double
3948  float radius,
3949  // Redis type: enum
3950  string unit,
3951  // Redis type: enum
3952  string withcoord = "",
3953  // Redis type: enum
3954  string withdist = "",
3955  // Redis type: enum
3956  string withhash = "",
3957  // Redis type: integer
3958  int count_count = 0,
3959  // Redis type: enum
3960  string order = "",
3961  // Redis type: key
3962  string store_key = "",
3963  // Redis type: key
3964  string storedist_key = ""
3965 ) {
3966  NWNXPushString("GEORADIUS");
3967  NWNXPushString(key);
3968  NWNXPushString(FloatToString(longitude, 0));
3969  NWNXPushString(FloatToString(latitude, 0));
3970  NWNXPushString(FloatToString(radius, 0));
3971  NWNXPushString(unit);
3972  if (withcoord != "") NWNXPushString(withcoord);
3973  if (withdist != "") NWNXPushString(withdist);
3974  if (withhash != "") NWNXPushString(withhash);
3975  if (count_count != 0) NWNXPushString(IntToString(count_count));
3976  if (order != "") NWNXPushString(order);
3977  if (store_key != "") NWNXPushString(store_key);
3978  if (storedist_key != "") NWNXPushString(storedist_key);
3979  NWNXCall("NWNX_Redis", "Deferred");
3980  return NWNXPopInt();
3981 }
3982 
3984  string key,
3985  string member,
3986  // Redis type: double
3987  float radius,
3988  // Redis type: enum
3989  string unit,
3990  // Redis type: enum
3991  string withcoord = "",
3992  // Redis type: enum
3993  string withdist = "",
3994  // Redis type: enum
3995  string withhash = "",
3996  // Redis type: integer
3997  int count_count = 0,
3998  // Redis type: enum
3999  string order = "",
4000  // Redis type: key
4001  string store_key = "",
4002  // Redis type: key
4003  string storedist_key = ""
4004 ) {
4005  NWNXPushString("GEORADIUSBYMEMBER");
4006  NWNXPushString(key);
4007  NWNXPushString(member);
4008  NWNXPushString(FloatToString(radius, 0));
4009  NWNXPushString(unit);
4010  if (withcoord != "") NWNXPushString(withcoord);
4011  if (withdist != "") NWNXPushString(withdist);
4012  if (withhash != "") NWNXPushString(withhash);
4013  if (count_count != 0) NWNXPushString(IntToString(count_count));
4014  if (order != "") NWNXPushString(order);
4015  if (store_key != "") NWNXPushString(store_key);
4016  if (storedist_key != "") NWNXPushString(storedist_key);
4017  NWNXCall("NWNX_Redis", "Deferred");
4018  return NWNXPopInt();
4019 }
4020 
4022  string key
4023 ) {
4024  NWNXPushString("GET");
4025  NWNXPushString(key);
4026  NWNXCall("NWNX_Redis", "Deferred");
4027  return NWNXPopInt();
4028 }
4029 
4031  string key,
4032  // Redis type: integer
4033  int offset
4034 ) {
4035  NWNXPushString("GETBIT");
4036  NWNXPushString(key);
4037  NWNXPushString(IntToString(offset));
4038  NWNXCall("NWNX_Redis", "Deferred");
4039  return NWNXPopInt();
4040 }
4041 
4043  string key,
4044  // Redis type: integer
4045  int start,
4046  // Redis type: integer
4047  int end
4048 ) {
4049  NWNXPushString("GETRANGE");
4050  NWNXPushString(key);
4051  NWNXPushString(IntToString(start));
4052  NWNXPushString(IntToString(end));
4053  NWNXCall("NWNX_Redis", "Deferred");
4054  return NWNXPopInt();
4055 }
4056 
4058  string key,
4059  string value
4060 ) {
4061  NWNXPushString("GETSET");
4062  NWNXPushString(key);
4063  NWNXPushString(value);
4064  NWNXCall("NWNX_Redis", "Deferred");
4065  return NWNXPopInt();
4066 }
4067 
4069  string key,
4070  string field
4071 ) {
4072  NWNXPushString("HDEL");
4073  NWNXPushString(key);
4074  NWNXPushString(field);
4075  NWNXCall("NWNX_Redis", "Deferred");
4076  return NWNXPopInt();
4077 }
4078 
4080  string key,
4081  string field
4082 ) {
4083  NWNXPushString("HEXISTS");
4084  NWNXPushString(key);
4085  NWNXPushString(field);
4086  NWNXCall("NWNX_Redis", "Deferred");
4087  return NWNXPopInt();
4088 }
4089 
4091  string key,
4092  string field
4093 ) {
4094  NWNXPushString("HGET");
4095  NWNXPushString(key);
4096  NWNXPushString(field);
4097  NWNXCall("NWNX_Redis", "Deferred");
4098  return NWNXPopInt();
4099 }
4100 
4102  string key
4103 ) {
4104  NWNXPushString("HGETALL");
4105  NWNXPushString(key);
4106  NWNXCall("NWNX_Redis", "Deferred");
4107  return NWNXPopInt();
4108 }
4109 
4111  string key,
4112  string field,
4113  // Redis type: integer
4114  int increment
4115 ) {
4116  NWNXPushString("HINCRBY");
4117  NWNXPushString(key);
4118  NWNXPushString(field);
4119  NWNXPushString(IntToString(increment));
4120  NWNXCall("NWNX_Redis", "Deferred");
4121  return NWNXPopInt();
4122 }
4123 
4125  string key,
4126  string field,
4127  // Redis type: double
4128  float increment
4129 ) {
4130  NWNXPushString("HINCRBYFLOAT");
4131  NWNXPushString(key);
4132  NWNXPushString(field);
4133  NWNXPushString(FloatToString(increment, 0));
4134  NWNXCall("NWNX_Redis", "Deferred");
4135  return NWNXPopInt();
4136 }
4137 
4139  string key
4140 ) {
4141  NWNXPushString("HKEYS");
4142  NWNXPushString(key);
4143  NWNXCall("NWNX_Redis", "Deferred");
4144  return NWNXPopInt();
4145 }
4146 
4148  string key
4149 ) {
4150  NWNXPushString("HLEN");
4151  NWNXPushString(key);
4152  NWNXCall("NWNX_Redis", "Deferred");
4153  return NWNXPopInt();
4154 }
4155 
4157  string key,
4158  string field
4159 ) {
4160  NWNXPushString("HMGET");
4161  NWNXPushString(key);
4162  NWNXPushString(field);
4163  NWNXCall("NWNX_Redis", "Deferred");
4164  return NWNXPopInt();
4165 }
4166 
4168  string key,
4169  string field,
4170  string value
4171 ) {
4172  NWNXPushString("HMSET");
4173  NWNXPushString(key);
4174  NWNXPushString(field);
4175  NWNXPushString(value);
4176  NWNXCall("NWNX_Redis", "Deferred");
4177  return NWNXPopInt();
4178 }
4179 
4181  string key,
4182  string field,
4183  string value
4184 ) {
4185  NWNXPushString("HSET");
4186  NWNXPushString(key);
4187  NWNXPushString(field);
4188  NWNXPushString(value);
4189  NWNXCall("NWNX_Redis", "Deferred");
4190  return NWNXPopInt();
4191 }
4192 
4194  string key,
4195  string field,
4196  string value
4197 ) {
4198  NWNXPushString("HSETNX");
4199  NWNXPushString(key);
4200  NWNXPushString(field);
4201  NWNXPushString(value);
4202  NWNXCall("NWNX_Redis", "Deferred");
4203  return NWNXPopInt();
4204 }
4205 
4207  string key,
4208  string field
4209 ) {
4210  NWNXPushString("HSTRLEN");
4211  NWNXPushString(key);
4212  NWNXPushString(field);
4213  NWNXCall("NWNX_Redis", "Deferred");
4214  return NWNXPopInt();
4215 }
4216 
4218  string key
4219 ) {
4220  NWNXPushString("HVALS");
4221  NWNXPushString(key);
4222  NWNXCall("NWNX_Redis", "Deferred");
4223  return NWNXPopInt();
4224 }
4225 
4227  string key
4228 ) {
4229  NWNXPushString("INCR");
4230  NWNXPushString(key);
4231  NWNXCall("NWNX_Redis", "Deferred");
4232  return NWNXPopInt();
4233 }
4234 
4236  string key,
4237  // Redis type: integer
4238  int increment
4239 ) {
4240  NWNXPushString("INCRBY");
4241  NWNXPushString(key);
4242  NWNXPushString(IntToString(increment));
4243  NWNXCall("NWNX_Redis", "Deferred");
4244  return NWNXPopInt();
4245 }
4246 
4248  string key,
4249  // Redis type: double
4250  float increment
4251 ) {
4252  NWNXPushString("INCRBYFLOAT");
4253  NWNXPushString(key);
4254  NWNXPushString(FloatToString(increment, 0));
4255  NWNXCall("NWNX_Redis", "Deferred");
4256  return NWNXPopInt();
4257 }
4258 
4260  string section = ""
4261 ) {
4262  NWNXPushString("INFO");
4263  if (section != "") NWNXPushString(section);
4264  NWNXCall("NWNX_Redis", "Deferred");
4265  return NWNXPopInt();
4266 }
4267 
4269  string pattern
4270 ) {
4271  NWNXPushString("KEYS");
4272  NWNXPushString(pattern);
4273  NWNXCall("NWNX_Redis", "Deferred");
4274  return NWNXPopInt();
4275 }
4276 
4278  NWNXPushString("LASTSAVE");
4279  NWNXCall("NWNX_Redis", "Deferred");
4280  return NWNXPopInt();
4281 }
4282 
4284  string key,
4285  // Redis type: integer
4286  int index
4287 ) {
4288  NWNXPushString("LINDEX");
4289  NWNXPushString(key);
4290  NWNXPushString(IntToString(index));
4291  NWNXCall("NWNX_Redis", "Deferred");
4292  return NWNXPopInt();
4293 }
4294 
4296  string key,
4297  // Redis type: enum
4298  string where,
4299  string pivot,
4300  string value
4301 ) {
4302  NWNXPushString("LINSERT");
4303  NWNXPushString(key);
4304  NWNXPushString(where);
4305  NWNXPushString(pivot);
4306  NWNXPushString(value);
4307  NWNXCall("NWNX_Redis", "Deferred");
4308  return NWNXPopInt();
4309 }
4310 
4312  string key
4313 ) {
4314  NWNXPushString("LLEN");
4315  NWNXPushString(key);
4316  NWNXCall("NWNX_Redis", "Deferred");
4317  return NWNXPopInt();
4318 }
4319 
4321  string key
4322 ) {
4323  NWNXPushString("LPOP");
4324  NWNXPushString(key);
4325  NWNXCall("NWNX_Redis", "Deferred");
4326  return NWNXPopInt();
4327 }
4328 
4330  string key,
4331  string value
4332 ) {
4333  NWNXPushString("LPUSH");
4334  NWNXPushString(key);
4335  NWNXPushString(value);
4336  NWNXCall("NWNX_Redis", "Deferred");
4337  return NWNXPopInt();
4338 }
4339 
4341  string key,
4342  string value
4343 ) {
4344  NWNXPushString("LPUSHX");
4345  NWNXPushString(key);
4346  NWNXPushString(value);
4347  NWNXCall("NWNX_Redis", "Deferred");
4348  return NWNXPopInt();
4349 }
4350 
4352  string key,
4353  // Redis type: integer
4354  int start,
4355  // Redis type: integer
4356  int stop
4357 ) {
4358  NWNXPushString("LRANGE");
4359  NWNXPushString(key);
4360  NWNXPushString(IntToString(start));
4361  NWNXPushString(IntToString(stop));
4362  NWNXCall("NWNX_Redis", "Deferred");
4363  return NWNXPopInt();
4364 }
4365 
4367  string key,
4368  // Redis type: integer
4369  int count,
4370  string value
4371 ) {
4372  NWNXPushString("LREM");
4373  NWNXPushString(key);
4374  NWNXPushString(IntToString(count));
4375  NWNXPushString(value);
4376  NWNXCall("NWNX_Redis", "Deferred");
4377  return NWNXPopInt();
4378 }
4379 
4381  string key,
4382  // Redis type: integer
4383  int index,
4384  string value
4385 ) {
4386  NWNXPushString("LSET");
4387  NWNXPushString(key);
4388  NWNXPushString(IntToString(index));
4389  NWNXPushString(value);
4390  NWNXCall("NWNX_Redis", "Deferred");
4391  return NWNXPopInt();
4392 }
4393 
4395  string key,
4396  // Redis type: integer
4397  int start,
4398  // Redis type: integer
4399  int stop
4400 ) {
4401  NWNXPushString("LTRIM");
4402  NWNXPushString(key);
4403  NWNXPushString(IntToString(start));
4404  NWNXPushString(IntToString(stop));
4405  NWNXCall("NWNX_Redis", "Deferred");
4406  return NWNXPopInt();
4407 }
4408 
4410  NWNXPushString("MEMORY_DOCTOR");
4411  NWNXCall("NWNX_Redis", "Deferred");
4412  return NWNXPopInt();
4413 }
4414 
4416  NWNXPushString("MEMORY_HELP");
4417  NWNXCall("NWNX_Redis", "Deferred");
4418  return NWNXPopInt();
4419 }
4420 
4422  NWNXPushString("MEMORY_MALLOC_STATS");
4423  NWNXCall("NWNX_Redis", "Deferred");
4424  return NWNXPopInt();
4425 }
4426 
4428  NWNXPushString("MEMORY_PURGE");
4429  NWNXCall("NWNX_Redis", "Deferred");
4430  return NWNXPopInt();
4431 }
4432 
4434  NWNXPushString("MEMORY_STATS");
4435  NWNXCall("NWNX_Redis", "Deferred");
4436  return NWNXPopInt();
4437 }
4438 
4440  string key,
4441  // Redis type: integer
4442  int samples_count = 0
4443 ) {
4444  NWNXPushString("MEMORY_USAGE");
4445  NWNXPushString(key);
4446  if (samples_count != 0) NWNXPushString(IntToString(samples_count));
4447  NWNXCall("NWNX_Redis", "Deferred");
4448  return NWNXPopInt();
4449 }
4450 
4452  string key
4453 ) {
4454  NWNXPushString("MGET");
4455  NWNXPushString(key);
4456  NWNXCall("NWNX_Redis", "Deferred");
4457  return NWNXPopInt();
4458 }
4459 
4461  string host,
4462  string port,
4463  // Redis type: enum
4464  string key,
4465  // Redis type: integer
4466  int destination_db,
4467  // Redis type: integer
4468  int timeout,
4469  // Redis type: enum
4470  string copy = "",
4471  // Redis type: enum
4472  string replace = "",
4473  string auth_password = "",
4474  // Redis type: key
4475  string keys_key = ""
4476 ) {
4477  NWNXPushString("MIGRATE");
4478  NWNXPushString(host);
4479  NWNXPushString(port);
4480  NWNXPushString(key);
4481  NWNXPushString(IntToString(destination_db));
4482  NWNXPushString(IntToString(timeout));
4483  if (copy != "") NWNXPushString(copy);
4484  if (replace != "") NWNXPushString(replace);
4485  if (auth_password != "") NWNXPushString(auth_password);
4486  if (keys_key != "") NWNXPushString(keys_key);
4487  NWNXCall("NWNX_Redis", "Deferred");
4488  return NWNXPopInt();
4489 }
4490 
4492  NWNXPushString("MONITOR");
4493  NWNXCall("NWNX_Redis", "Deferred");
4494  return NWNXPopInt();
4495 }
4496 
4498  string key,
4499  // Redis type: integer
4500  int db
4501 ) {
4502  NWNXPushString("MOVE");
4503  NWNXPushString(key);
4504  NWNXPushString(IntToString(db));
4505  NWNXCall("NWNX_Redis", "Deferred");
4506  return NWNXPopInt();
4507 }
4508 
4510  string key,
4511  string value
4512 ) {
4513  NWNXPushString("MSET");
4514  NWNXPushString(key);
4515  NWNXPushString(value);
4516  NWNXCall("NWNX_Redis", "Deferred");
4517  return NWNXPopInt();
4518 }
4519 
4521  string key,
4522  string value
4523 ) {
4524  NWNXPushString("MSETNX");
4525  NWNXPushString(key);
4526  NWNXPushString(value);
4527  NWNXCall("NWNX_Redis", "Deferred");
4528  return NWNXPopInt();
4529 }
4530 
4532  NWNXPushString("MULTI");
4533  NWNXCall("NWNX_Redis", "Deferred");
4534  return NWNXPopInt();
4535 }
4536 
4538  string subcommand,
4539  string arguments = ""
4540 ) {
4541  NWNXPushString("OBJECT");
4542  NWNXPushString(subcommand);
4543  if (arguments != "") NWNXPushString(arguments);
4544  NWNXCall("NWNX_Redis", "Deferred");
4545  return NWNXPopInt();
4546 }
4547 
4549  string key
4550 ) {
4551  NWNXPushString("PERSIST");
4552  NWNXPushString(key);
4553  NWNXCall("NWNX_Redis", "Deferred");
4554  return NWNXPopInt();
4555 }
4556 
4558  string key,
4559  // Redis type: integer
4560  int milliseconds
4561 ) {
4562  NWNXPushString("PEXPIRE");
4563  NWNXPushString(key);
4564  NWNXPushString(IntToString(milliseconds));
4565  NWNXCall("NWNX_Redis", "Deferred");
4566  return NWNXPopInt();
4567 }
4568 
4570  string key,
4571  // Redis type: posix time
4572  string milliseconds_timestamp
4573 ) {
4574  NWNXPushString("PEXPIREAT");
4575  NWNXPushString(key);
4576  NWNXPushString(milliseconds_timestamp);
4577  NWNXCall("NWNX_Redis", "Deferred");
4578  return NWNXPopInt();
4579 }
4580 
4582  string key,
4583  string element
4584 ) {
4585  NWNXPushString("PFADD");
4586  NWNXPushString(key);
4587  NWNXPushString(element);
4588  NWNXCall("NWNX_Redis", "Deferred");
4589  return NWNXPopInt();
4590 }
4591 
4593  string key
4594 ) {
4595  NWNXPushString("PFCOUNT");
4596  NWNXPushString(key);
4597  NWNXCall("NWNX_Redis", "Deferred");
4598  return NWNXPopInt();
4599 }
4600 
4602  // Redis type: key
4603  string destkey,
4604  // Redis type: key
4605  string sourcekey
4606 ) {
4607  NWNXPushString("PFMERGE");
4608  NWNXPushString(destkey);
4609  NWNXPushString(sourcekey);
4610  NWNXCall("NWNX_Redis", "Deferred");
4611  return NWNXPopInt();
4612 }
4613 
4615  string message = ""
4616 ) {
4617  NWNXPushString("PING");
4618  if (message != "") NWNXPushString(message);
4619  NWNXCall("NWNX_Redis", "Deferred");
4620  return NWNXPopInt();
4621 }
4622 
4624  string key,
4625  // Redis type: integer
4626  int milliseconds,
4627  string value
4628 ) {
4629  NWNXPushString("PSETEX");
4630  NWNXPushString(key);
4631  NWNXPushString(IntToString(milliseconds));
4632  NWNXPushString(value);
4633  NWNXCall("NWNX_Redis", "Deferred");
4634  return NWNXPopInt();
4635 }
4636 
4638  string subcommand,
4639  string argument = ""
4640 ) {
4641  NWNXPushString("PUBSUB");
4642  NWNXPushString(subcommand);
4643  if (argument != "") NWNXPushString(argument);
4644  NWNXCall("NWNX_Redis", "Deferred");
4645  return NWNXPopInt();
4646 }
4647 
4649  string key
4650 ) {
4651  NWNXPushString("PTTL");
4652  NWNXPushString(key);
4653  NWNXCall("NWNX_Redis", "Deferred");
4654  return NWNXPopInt();
4655 }
4656 
4658  string channel,
4659  string message
4660 ) {
4661  NWNXPushString("PUBLISH");
4662  NWNXPushString(channel);
4663  NWNXPushString(message);
4664  NWNXCall("NWNX_Redis", "Deferred");
4665  return NWNXPopInt();
4666 }
4667 
4669  NWNXPushString("QUIT");
4670  NWNXCall("NWNX_Redis", "Deferred");
4671  return NWNXPopInt();
4672 }
4673 
4675  NWNXPushString("RANDOMKEY");
4676  NWNXCall("NWNX_Redis", "Deferred");
4677  return NWNXPopInt();
4678 }
4679 
4681  NWNXPushString("READONLY");
4682  NWNXCall("NWNX_Redis", "Deferred");
4683  return NWNXPopInt();
4684 }
4685 
4687  NWNXPushString("READWRITE");
4688  NWNXCall("NWNX_Redis", "Deferred");
4689  return NWNXPopInt();
4690 }
4691 
4693  string key,
4694  // Redis type: key
4695  string newkey
4696 ) {
4697  NWNXPushString("RENAME");
4698  NWNXPushString(key);
4699  NWNXPushString(newkey);
4700  NWNXCall("NWNX_Redis", "Deferred");
4701  return NWNXPopInt();
4702 }
4703 
4705  string key,
4706  // Redis type: key
4707  string newkey
4708 ) {
4709  NWNXPushString("RENAMENX");
4710  NWNXPushString(key);
4711  NWNXPushString(newkey);
4712  NWNXCall("NWNX_Redis", "Deferred");
4713  return NWNXPopInt();
4714 }
4715 
4717  string key,
4718  // Redis type: integer
4719  int ttl,
4720  string serialized_value,
4721  // Redis type: enum
4722  string replace = "",
4723  // Redis type: enum
4724  string absttl = "",
4725  // Redis type: integer
4726  int idletime_seconds = 0,
4727  // Redis type: integer
4728  int freq_frequency = 0
4729 ) {
4730  NWNXPushString("RESTORE");
4731  NWNXPushString(key);
4732  NWNXPushString(IntToString(ttl));
4733  NWNXPushString(serialized_value);
4734  if (replace != "") NWNXPushString(replace);
4735  if (absttl != "") NWNXPushString(absttl);
4736  if (idletime_seconds != 0) NWNXPushString(IntToString(idletime_seconds));
4737  if (freq_frequency != 0) NWNXPushString(IntToString(freq_frequency));
4738  NWNXCall("NWNX_Redis", "Deferred");
4739  return NWNXPopInt();
4740 }
4741 
4743  NWNXPushString("ROLE");
4744  NWNXCall("NWNX_Redis", "Deferred");
4745  return NWNXPopInt();
4746 }
4747 
4749  string key
4750 ) {
4751  NWNXPushString("RPOP");
4752  NWNXPushString(key);
4753  NWNXCall("NWNX_Redis", "Deferred");
4754  return NWNXPopInt();
4755 }
4756 
4758  // Redis type: key
4759  string source,
4760  // Redis type: key
4761  string destination
4762 ) {
4763  NWNXPushString("RPOPLPUSH");
4764  NWNXPushString(source);
4765  NWNXPushString(destination);
4766  NWNXCall("NWNX_Redis", "Deferred");
4767  return NWNXPopInt();
4768 }
4769 
4771  string key,
4772  string value
4773 ) {
4774  NWNXPushString("RPUSH");
4775  NWNXPushString(key);
4776  NWNXPushString(value);
4777  NWNXCall("NWNX_Redis", "Deferred");
4778  return NWNXPopInt();
4779 }
4780 
4782  string key,
4783  string value
4784 ) {
4785  NWNXPushString("RPUSHX");
4786  NWNXPushString(key);
4787  NWNXPushString(value);
4788  NWNXCall("NWNX_Redis", "Deferred");
4789  return NWNXPopInt();
4790 }
4791 
4793  string key,
4794  string member
4795 ) {
4796  NWNXPushString("SADD");
4797  NWNXPushString(key);
4798  NWNXPushString(member);
4799  NWNXCall("NWNX_Redis", "Deferred");
4800  return NWNXPopInt();
4801 }
4802 
4804  NWNXPushString("SAVE");
4805  NWNXCall("NWNX_Redis", "Deferred");
4806  return NWNXPopInt();
4807 }
4808 
4810  string key
4811 ) {
4812  NWNXPushString("SCARD");
4813  NWNXPushString(key);
4814  NWNXCall("NWNX_Redis", "Deferred");
4815  return NWNXPopInt();
4816 }
4817 
4819  // Redis type: enum
4820  string mode
4821 ) {
4822  NWNXPushString("SCRIPT_DEBUG");
4823  NWNXPushString(mode);
4824  NWNXCall("NWNX_Redis", "Deferred");
4825  return NWNXPopInt();
4826 }
4827 
4829  string sha1
4830 ) {
4831  NWNXPushString("SCRIPT_EXISTS");
4832  NWNXPushString(sha1);
4833  NWNXCall("NWNX_Redis", "Deferred");
4834  return NWNXPopInt();
4835 }
4836 
4838  NWNXPushString("SCRIPT_FLUSH");
4839  NWNXCall("NWNX_Redis", "Deferred");
4840  return NWNXPopInt();
4841 }
4842 
4844  NWNXPushString("SCRIPT_KILL");
4845  NWNXCall("NWNX_Redis", "Deferred");
4846  return NWNXPopInt();
4847 }
4848 
4850  string script
4851 ) {
4852  NWNXPushString("SCRIPT_LOAD");
4853  NWNXPushString(script);
4854  NWNXCall("NWNX_Redis", "Deferred");
4855  return NWNXPopInt();
4856 }
4857 
4859  string key
4860 ) {
4861  NWNXPushString("SDIFF");
4862  NWNXPushString(key);
4863  NWNXCall("NWNX_Redis", "Deferred");
4864  return NWNXPopInt();
4865 }
4866 
4868  // Redis type: key
4869  string destination,
4870  string key
4871 ) {
4872  NWNXPushString("SDIFFSTORE");
4873  NWNXPushString(destination);
4874  NWNXPushString(key);
4875  NWNXCall("NWNX_Redis", "Deferred");
4876  return NWNXPopInt();
4877 }
4878 
4880  // Redis type: integer
4881  int index
4882 ) {
4883  NWNXPushString("SELECT");
4884  NWNXPushString(IntToString(index));
4885  NWNXCall("NWNX_Redis", "Deferred");
4886  return NWNXPopInt();
4887 }
4888 
4890  string key,
4891  string value,
4892  // Redis type: enum
4893  string condition = ""
4894 ) {
4895  NWNXPushString("SET");
4896  NWNXPushString(key);
4897  NWNXPushString(value);
4898  if (condition != "") NWNXPushString(condition);
4899  NWNXCall("NWNX_Redis", "Deferred");
4900  return NWNXPopInt();
4901 }
4902 
4904  string key,
4905  // Redis type: integer
4906  int offset,
4907  string value
4908 ) {
4909  NWNXPushString("SETBIT");
4910  NWNXPushString(key);
4911  NWNXPushString(IntToString(offset));
4912  NWNXPushString(value);
4913  NWNXCall("NWNX_Redis", "Deferred");
4914  return NWNXPopInt();
4915 }
4916 
4918  string key,
4919  // Redis type: integer
4920  int seconds,
4921  string value
4922 ) {
4923  NWNXPushString("SETEX");
4924  NWNXPushString(key);
4925  NWNXPushString(IntToString(seconds));
4926  NWNXPushString(value);
4927  NWNXCall("NWNX_Redis", "Deferred");
4928  return NWNXPopInt();
4929 }
4930 
4932  string key,
4933  string value
4934 ) {
4935  NWNXPushString("SETNX");
4936  NWNXPushString(key);
4937  NWNXPushString(value);
4938  NWNXCall("NWNX_Redis", "Deferred");
4939  return NWNXPopInt();
4940 }
4941 
4943  string key,
4944  // Redis type: integer
4945  int offset,
4946  string value
4947 ) {
4948  NWNXPushString("SETRANGE");
4949  NWNXPushString(key);
4950  NWNXPushString(IntToString(offset));
4951  NWNXPushString(value);
4952  NWNXCall("NWNX_Redis", "Deferred");
4953  return NWNXPopInt();
4954 }
4955 
4957  // Redis type: enum
4958  string save_mode = ""
4959 ) {
4960  NWNXPushString("SHUTDOWN");
4961  if (save_mode != "") NWNXPushString(save_mode);
4962  NWNXCall("NWNX_Redis", "Deferred");
4963  return NWNXPopInt();
4964 }
4965 
4967  string key
4968 ) {
4969  NWNXPushString("SINTER");
4970  NWNXPushString(key);
4971  NWNXCall("NWNX_Redis", "Deferred");
4972  return NWNXPopInt();
4973 }
4974 
4976  // Redis type: key
4977  string destination,
4978  string key
4979 ) {
4980  NWNXPushString("SINTERSTORE");
4981  NWNXPushString(destination);
4982  NWNXPushString(key);
4983  NWNXCall("NWNX_Redis", "Deferred");
4984  return NWNXPopInt();
4985 }
4986 
4988  string key,
4989  string member
4990 ) {
4991  NWNXPushString("SISMEMBER");
4992  NWNXPushString(key);
4993  NWNXPushString(member);
4994  NWNXCall("NWNX_Redis", "Deferred");
4995  return NWNXPopInt();
4996 }
4997 
4999  string host,
5000  string port
5001 ) {
5002  NWNXPushString("SLAVEOF");
5003  NWNXPushString(host);
5004  NWNXPushString(port);
5005  NWNXCall("NWNX_Redis", "Deferred");
5006  return NWNXPopInt();
5007 }
5008 
5010  string host,
5011  string port
5012 ) {
5013  NWNXPushString("REPLICAOF");
5014  NWNXPushString(host);
5015  NWNXPushString(port);
5016  NWNXCall("NWNX_Redis", "Deferred");
5017  return NWNXPopInt();
5018 }
5019 
5021  string subcommand,
5022  string argument = ""
5023 ) {
5024  NWNXPushString("SLOWLOG");
5025  NWNXPushString(subcommand);
5026  if (argument != "") NWNXPushString(argument);
5027  NWNXCall("NWNX_Redis", "Deferred");
5028  return NWNXPopInt();
5029 }
5030 
5032  string key
5033 ) {
5034  NWNXPushString("SMEMBERS");
5035  NWNXPushString(key);
5036  NWNXCall("NWNX_Redis", "Deferred");
5037  return NWNXPopInt();
5038 }
5039 
5041  // Redis type: key
5042  string source,
5043  // Redis type: key
5044  string destination,
5045  string member
5046 ) {
5047  NWNXPushString("SMOVE");
5048  NWNXPushString(source);
5049  NWNXPushString(destination);
5050  NWNXPushString(member);
5051  NWNXCall("NWNX_Redis", "Deferred");
5052  return NWNXPopInt();
5053 }
5054 
5056  string key,
5057  // Redis type: pattern
5058  string by_pattern = "",
5059  // Redis type: integer
5060  int limit_offset = 0,
5061  // Redis type: integer
5062  int limit_count = 0,
5063  string get_pattern = "",
5064  // Redis type: enum
5065  string order = "",
5066  // Redis type: enum
5067  string sorting = "",
5068  // Redis type: key
5069  string store_destination = ""
5070 ) {
5071  NWNXPushString("SORT");
5072  NWNXPushString(key);
5073  if (by_pattern != "") NWNXPushString(by_pattern);
5074  if (limit_offset != 0) NWNXPushString(IntToString(limit_offset));
5075  if (limit_count != 0) NWNXPushString(IntToString(limit_count));
5076  if (get_pattern != "") NWNXPushString(get_pattern);
5077  if (order != "") NWNXPushString(order);
5078  if (sorting != "") NWNXPushString(sorting);
5079  if (store_destination != "") NWNXPushString(store_destination);
5080  NWNXCall("NWNX_Redis", "Deferred");
5081  return NWNXPopInt();
5082 }
5083 
5085  string key,
5086  // Redis type: integer
5087  int count = 0
5088 ) {
5089  NWNXPushString("SPOP");
5090  NWNXPushString(key);
5091  if (count != 0) NWNXPushString(IntToString(count));
5092  NWNXCall("NWNX_Redis", "Deferred");
5093  return NWNXPopInt();
5094 }
5095 
5097  string key,
5098  // Redis type: integer
5099  int count = 0
5100 ) {
5101  NWNXPushString("SRANDMEMBER");
5102  NWNXPushString(key);
5103  if (count != 0) NWNXPushString(IntToString(count));
5104  NWNXCall("NWNX_Redis", "Deferred");
5105  return NWNXPopInt();
5106 }
5107 
5109  string key,
5110  string member
5111 ) {
5112  NWNXPushString("SREM");
5113  NWNXPushString(key);
5114  NWNXPushString(member);
5115  NWNXCall("NWNX_Redis", "Deferred");
5116  return NWNXPopInt();
5117 }
5118 
5120  string key
5121 ) {
5122  NWNXPushString("STRLEN");
5123  NWNXPushString(key);
5124  NWNXCall("NWNX_Redis", "Deferred");
5125  return NWNXPopInt();
5126 }
5127 
5129  string key
5130 ) {
5131  NWNXPushString("SUNION");
5132  NWNXPushString(key);
5133  NWNXCall("NWNX_Redis", "Deferred");
5134  return NWNXPopInt();
5135 }
5136 
5138  // Redis type: key
5139  string destination,
5140  string key
5141 ) {
5142  NWNXPushString("SUNIONSTORE");
5143  NWNXPushString(destination);
5144  NWNXPushString(key);
5145  NWNXCall("NWNX_Redis", "Deferred");
5146  return NWNXPopInt();
5147 }
5148 
5150  // Redis type: integer
5151  int index,
5152  // Redis type: integer
5153  int index_1
5154 ) {
5155  NWNXPushString("SWAPDB");
5156  NWNXPushString(IntToString(index));
5157  NWNXPushString(IntToString(index_1));
5158  NWNXCall("NWNX_Redis", "Deferred");
5159  return NWNXPopInt();
5160 }
5161 
5163  NWNXPushString("SYNC");
5164  NWNXCall("NWNX_Redis", "Deferred");
5165  return NWNXPopInt();
5166 }
5167 
5169  NWNXPushString("TIME");
5170  NWNXCall("NWNX_Redis", "Deferred");
5171  return NWNXPopInt();
5172 }
5173 
5175  string key
5176 ) {
5177  NWNXPushString("TOUCH");
5178  NWNXPushString(key);
5179  NWNXCall("NWNX_Redis", "Deferred");
5180  return NWNXPopInt();
5181 }
5182 
5184  string key
5185 ) {
5186  NWNXPushString("TTL");
5187  NWNXPushString(key);
5188  NWNXCall("NWNX_Redis", "Deferred");
5189  return NWNXPopInt();
5190 }
5191 
5193  string key
5194 ) {
5195  NWNXPushString("TYPE");
5196  NWNXPushString(key);
5197  NWNXCall("NWNX_Redis", "Deferred");
5198  return NWNXPopInt();
5199 }
5200 
5202  string key
5203 ) {
5204  NWNXPushString("UNLINK");
5205  NWNXPushString(key);
5206  NWNXCall("NWNX_Redis", "Deferred");
5207  return NWNXPopInt();
5208 }
5209 
5211  NWNXPushString("UNWATCH");
5212  NWNXCall("NWNX_Redis", "Deferred");
5213  return NWNXPopInt();
5214 }
5215 
5217  // Redis type: integer
5218  int numreplicas,
5219  // Redis type: integer
5220  int timeout
5221 ) {
5222  NWNXPushString("WAIT");
5223  NWNXPushString(IntToString(numreplicas));
5224  NWNXPushString(IntToString(timeout));
5225  NWNXCall("NWNX_Redis", "Deferred");
5226  return NWNXPopInt();
5227 }
5228 
5230  string key
5231 ) {
5232  NWNXPushString("WATCH");
5233  NWNXPushString(key);
5234  NWNXCall("NWNX_Redis", "Deferred");
5235  return NWNXPopInt();
5236 }
5237 
5239  string key,
5240  // Redis type: enum
5241  string condition = "",
5242  // Redis type: enum
5243  string change = "",
5244  // Redis type: enum
5245  string increment = "",
5246  // Redis type: double
5247  float score = 0.0,
5248  string member = ""
5249 ) {
5250  NWNXPushString("ZADD");
5251  NWNXPushString(key);
5252  if (condition != "") NWNXPushString(condition);
5253  if (change != "") NWNXPushString(change);
5254  if (increment != "") NWNXPushString(increment);
5255  NWNXPushString(FloatToString(score, 0));
5256  NWNXPushString(member);
5257  NWNXCall("NWNX_Redis", "Deferred");
5258  return NWNXPopInt();
5259 }
5260 
5262  string key
5263 ) {
5264  NWNXPushString("ZCARD");
5265  NWNXPushString(key);
5266  NWNXCall("NWNX_Redis", "Deferred");
5267  return NWNXPopInt();
5268 }
5269 
5271  string key,
5272  // Redis type: double
5273  float min,
5274  // Redis type: double
5275  float max
5276 ) {
5277  NWNXPushString("ZCOUNT");
5278  NWNXPushString(key);
5279  NWNXPushString(FloatToString(min, 0));
5280  NWNXPushString(FloatToString(max, 0));
5281  NWNXCall("NWNX_Redis", "Deferred");
5282  return NWNXPopInt();
5283 }
5284 
5286  string key,
5287  // Redis type: integer
5288  int increment,
5289  string member
5290 ) {
5291  NWNXPushString("ZINCRBY");
5292  NWNXPushString(key);
5293  NWNXPushString(IntToString(increment));
5294  NWNXPushString(member);
5295  NWNXCall("NWNX_Redis", "Deferred");
5296  return NWNXPopInt();
5297 }
5298 
5300  // Redis type: key
5301  string destination,
5302  // Redis type: integer
5303  int numkeys,
5304  string key,
5305  // Redis type: integer
5306  int weights_weight = 0,
5307  // Redis type: enum
5308  string aggregate_aggregate = ""
5309 ) {
5310  NWNXPushString("ZINTERSTORE");
5311  NWNXPushString(destination);
5312  NWNXPushString(IntToString(numkeys));
5313  NWNXPushString(key);
5314  if (weights_weight != 0) NWNXPushString(IntToString(weights_weight));
5315  if (aggregate_aggregate != "") NWNXPushString(aggregate_aggregate);
5316  NWNXCall("NWNX_Redis", "Deferred");
5317  return NWNXPopInt();
5318 }
5319 
5321  string key,
5322  string min,
5323  string max
5324 ) {
5325  NWNXPushString("ZLEXCOUNT");
5326  NWNXPushString(key);
5327  NWNXPushString(min);
5328  NWNXPushString(max);
5329  NWNXCall("NWNX_Redis", "Deferred");
5330  return NWNXPopInt();
5331 }
5332 
5334  string key,
5335  // Redis type: integer
5336  int count = 0
5337 ) {
5338  NWNXPushString("ZPOPMAX");
5339  NWNXPushString(key);
5340  if (count != 0) NWNXPushString(IntToString(count));
5341  NWNXCall("NWNX_Redis", "Deferred");
5342  return NWNXPopInt();
5343 }
5344 
5346  string key,
5347  // Redis type: integer
5348  int count = 0
5349 ) {
5350  NWNXPushString("ZPOPMIN");
5351  NWNXPushString(key);
5352  if (count != 0) NWNXPushString(IntToString(count));
5353  NWNXCall("NWNX_Redis", "Deferred");
5354  return NWNXPopInt();
5355 }
5356 
5358  string key,
5359  // Redis type: integer
5360  int start,
5361  // Redis type: integer
5362  int stop,
5363  // Redis type: enum
5364  string withscores = ""
5365 ) {
5366  NWNXPushString("ZRANGE");
5367  NWNXPushString(key);
5368  NWNXPushString(IntToString(start));
5369  NWNXPushString(IntToString(stop));
5370  if (withscores != "") NWNXPushString(withscores);
5371  NWNXCall("NWNX_Redis", "Deferred");
5372  return NWNXPopInt();
5373 }
5374 
5376  string key,
5377  string min,
5378  string max,
5379  // Redis type: integer
5380  int limit_offset = 0,
5381  // Redis type: integer
5382  int limit_count = 0
5383 ) {
5384  NWNXPushString("ZRANGEBYLEX");
5385  NWNXPushString(key);
5386  NWNXPushString(min);
5387  NWNXPushString(max);
5388  if (limit_offset != 0) NWNXPushString(IntToString(limit_offset));
5389  if (limit_count != 0) NWNXPushString(IntToString(limit_count));
5390  NWNXCall("NWNX_Redis", "Deferred");
5391  return NWNXPopInt();
5392 }
5393 
5395  string key,
5396  string max,
5397  string min,
5398  // Redis type: integer
5399  int limit_offset = 0,
5400  // Redis type: integer
5401  int limit_count = 0
5402 ) {
5403  NWNXPushString("ZREVRANGEBYLEX");
5404  NWNXPushString(key);
5405  NWNXPushString(max);
5406  NWNXPushString(min);
5407  if (limit_offset != 0) NWNXPushString(IntToString(limit_offset));
5408  if (limit_count != 0) NWNXPushString(IntToString(limit_count));
5409  NWNXCall("NWNX_Redis", "Deferred");
5410  return NWNXPopInt();
5411 }
5412 
5414  string key,
5415  // Redis type: double
5416  float min,
5417  // Redis type: double
5418  float max,
5419  // Redis type: enum
5420  string withscores = "",
5421  // Redis type: integer
5422  int limit_offset = 0,
5423  // Redis type: integer
5424  int limit_count = 0
5425 ) {
5426  NWNXPushString("ZRANGEBYSCORE");
5427  NWNXPushString(key);
5428  NWNXPushString(FloatToString(min, 0));
5429  NWNXPushString(FloatToString(max, 0));
5430  if (withscores != "") NWNXPushString(withscores);
5431  if (limit_offset != 0) NWNXPushString(IntToString(limit_offset));
5432  if (limit_count != 0) NWNXPushString(IntToString(limit_count));
5433  NWNXCall("NWNX_Redis", "Deferred");
5434  return NWNXPopInt();
5435 }
5436 
5438  string key,
5439  string member
5440 ) {
5441  NWNXPushString("ZRANK");
5442  NWNXPushString(key);
5443  NWNXPushString(member);
5444  NWNXCall("NWNX_Redis", "Deferred");
5445  return NWNXPopInt();
5446 }
5447 
5449  string key,
5450  string member
5451 ) {
5452  NWNXPushString("ZREM");
5453  NWNXPushString(key);
5454  NWNXPushString(member);
5455  NWNXCall("NWNX_Redis", "Deferred");
5456  return NWNXPopInt();
5457 }
5458 
5460  string key,
5461  string min,
5462  string max
5463 ) {
5464  NWNXPushString("ZREMRANGEBYLEX");
5465  NWNXPushString(key);
5466  NWNXPushString(min);
5467  NWNXPushString(max);
5468  NWNXCall("NWNX_Redis", "Deferred");
5469  return NWNXPopInt();
5470 }
5471 
5473  string key,
5474  // Redis type: integer
5475  int start,
5476  // Redis type: integer
5477  int stop
5478 ) {
5479  NWNXPushString("ZREMRANGEBYRANK");
5480  NWNXPushString(key);
5481  NWNXPushString(IntToString(start));
5482  NWNXPushString(IntToString(stop));
5483  NWNXCall("NWNX_Redis", "Deferred");
5484  return NWNXPopInt();
5485 }
5486 
5488  string key,
5489  // Redis type: double
5490  float min,
5491  // Redis type: double
5492  float max
5493 ) {
5494  NWNXPushString("ZREMRANGEBYSCORE");
5495  NWNXPushString(key);
5496  NWNXPushString(FloatToString(min, 0));
5497  NWNXPushString(FloatToString(max, 0));
5498  NWNXCall("NWNX_Redis", "Deferred");
5499  return NWNXPopInt();
5500 }
5501 
5503  string key,
5504  // Redis type: integer
5505  int start,
5506  // Redis type: integer
5507  int stop,
5508  // Redis type: enum
5509  string withscores = ""
5510 ) {
5511  NWNXPushString("ZREVRANGE");
5512  NWNXPushString(key);
5513  NWNXPushString(IntToString(start));
5514  NWNXPushString(IntToString(stop));
5515  if (withscores != "") NWNXPushString(withscores);
5516  NWNXCall("NWNX_Redis", "Deferred");
5517  return NWNXPopInt();
5518 }
5519 
5521  string key,
5522  // Redis type: double
5523  float max,
5524  // Redis type: double
5525  float min,
5526  // Redis type: enum
5527  string withscores = "",
5528  // Redis type: integer
5529  int limit_offset = 0,
5530  // Redis type: integer
5531  int limit_count = 0
5532 ) {
5533  NWNXPushString("ZREVRANGEBYSCORE");
5534  NWNXPushString(key);
5535  NWNXPushString(FloatToString(max, 0));
5536  NWNXPushString(FloatToString(min, 0));
5537  if (withscores != "") NWNXPushString(withscores);
5538  if (limit_offset != 0) NWNXPushString(IntToString(limit_offset));
5539  if (limit_count != 0) NWNXPushString(IntToString(limit_count));
5540  NWNXCall("NWNX_Redis", "Deferred");
5541  return NWNXPopInt();
5542 }
5543 
5545  string key,
5546  string member
5547 ) {
5548  NWNXPushString("ZREVRANK");
5549  NWNXPushString(key);
5550  NWNXPushString(member);
5551  NWNXCall("NWNX_Redis", "Deferred");
5552  return NWNXPopInt();
5553 }
5554 
5556  string key,
5557  string member
5558 ) {
5559  NWNXPushString("ZSCORE");
5560  NWNXPushString(key);
5561  NWNXPushString(member);
5562  NWNXCall("NWNX_Redis", "Deferred");
5563  return NWNXPopInt();
5564 }
5565 
5567  // Redis type: key
5568  string destination,
5569  // Redis type: integer
5570  int numkeys,
5571  string key,
5572  // Redis type: integer
5573  int weights_weight = 0,
5574  // Redis type: enum
5575  string aggregate_aggregate = ""
5576 ) {
5577  NWNXPushString("ZUNIONSTORE");
5578  NWNXPushString(destination);
5579  NWNXPushString(IntToString(numkeys));
5580  NWNXPushString(key);
5581  if (weights_weight != 0) NWNXPushString(IntToString(weights_weight));
5582  if (aggregate_aggregate != "") NWNXPushString(aggregate_aggregate);
5583  NWNXCall("NWNX_Redis", "Deferred");
5584  return NWNXPopInt();
5585 }
5586 
5588  // Redis type: integer
5589  int cursor,
5590  // Redis type: pattern
5591  string match_pattern = "",
5592  // Redis type: integer
5593  int count_count = 0,
5594  string type_type = ""
5595 ) {
5596  NWNXPushString("SCAN");
5597  NWNXPushString(IntToString(cursor));
5598  if (match_pattern != "") NWNXPushString(match_pattern);
5599  if (count_count != 0) NWNXPushString(IntToString(count_count));
5600  if (type_type != "") NWNXPushString(type_type);
5601  NWNXCall("NWNX_Redis", "Deferred");
5602  return NWNXPopInt();
5603 }
5604 
5606  string key,
5607  // Redis type: integer
5608  int cursor,
5609  // Redis type: pattern
5610  string match_pattern = "",
5611  // Redis type: integer
5612  int count_count = 0
5613 ) {
5614  NWNXPushString("SSCAN");
5615  NWNXPushString(key);
5616  NWNXPushString(IntToString(cursor));
5617  if (match_pattern != "") NWNXPushString(match_pattern);
5618  if (count_count != 0) NWNXPushString(IntToString(count_count));
5619  NWNXCall("NWNX_Redis", "Deferred");
5620  return NWNXPopInt();
5621 }
5622 
5624  string key,
5625  // Redis type: integer
5626  int cursor,
5627  // Redis type: pattern
5628  string match_pattern = "",
5629  // Redis type: integer
5630  int count_count = 0
5631 ) {
5632  NWNXPushString("HSCAN");
5633  NWNXPushString(key);
5634  NWNXPushString(IntToString(cursor));
5635  if (match_pattern != "") NWNXPushString(match_pattern);
5636  if (count_count != 0) NWNXPushString(IntToString(count_count));
5637  NWNXCall("NWNX_Redis", "Deferred");
5638  return NWNXPopInt();
5639 }
5640 
5642  string key,
5643  // Redis type: integer
5644  int cursor,
5645  // Redis type: pattern
5646  string match_pattern = "",
5647  // Redis type: integer
5648  int count_count = 0
5649 ) {
5650  NWNXPushString("ZSCAN");
5651  NWNXPushString(key);
5652  NWNXPushString(IntToString(cursor));
5653  if (match_pattern != "") NWNXPushString(match_pattern);
5654  if (count_count != 0) NWNXPushString(IntToString(count_count));
5655  NWNXCall("NWNX_Redis", "Deferred");
5656  return NWNXPopInt();
5657 }
5658 
5660  // Redis type: key
5661  string consumers_key = "",
5662  string consumers_groupname = "",
5663  // Redis type: key
5664  string groups_key = "",
5665  // Redis type: key
5666  string stream_key = "",
5667  // Redis type: enum
5668  string help = ""
5669 ) {
5670  NWNXPushString("XINFO");
5671  if (consumers_key != "") NWNXPushString(consumers_key);
5672  if (consumers_groupname != "") NWNXPushString(consumers_groupname);
5673  if (groups_key != "") NWNXPushString(groups_key);
5674  if (stream_key != "") NWNXPushString(stream_key);
5675  if (help != "") NWNXPushString(help);
5676  NWNXCall("NWNX_Redis", "Deferred");
5677  return NWNXPopInt();
5678 }
5679 
5681  string key,
5682  string ID,
5683  // Redis type: value
5684  string field,
5685  string str
5686 ) {
5687  NWNXPushString("XADD");
5688  NWNXPushString(key);
5689  NWNXPushString(ID);
5690  NWNXPushString(field);
5691  NWNXPushString(str);
5692  NWNXCall("NWNX_Redis", "Deferred");
5693  return NWNXPopInt();
5694 }
5695 
5697  string key,
5698  // Redis type: enum
5699  string strategy,
5700  // Redis type: enum
5701  string approx = "",
5702  // Redis type: integer
5703  int count = 0
5704 ) {
5705  NWNXPushString("XTRIM");
5706  NWNXPushString(key);
5707  NWNXPushString(strategy);
5708  if (approx != "") NWNXPushString(approx);
5709  NWNXPushString(IntToString(count));
5710  NWNXCall("NWNX_Redis", "Deferred");
5711  return NWNXPopInt();
5712 }
5713 
5715  string key,
5716  string ID
5717 ) {
5718  NWNXPushString("XDEL");
5719  NWNXPushString(key);
5720  NWNXPushString(ID);
5721  NWNXCall("NWNX_Redis", "Deferred");
5722  return NWNXPopInt();
5723 }
5724 
5726  string key,
5727  string start,
5728  string end,
5729  // Redis type: integer
5730  int count_count = 0
5731 ) {
5732  NWNXPushString("XRANGE");
5733  NWNXPushString(key);
5734  NWNXPushString(start);
5735  NWNXPushString(end);
5736  if (count_count != 0) NWNXPushString(IntToString(count_count));
5737  NWNXCall("NWNX_Redis", "Deferred");
5738  return NWNXPopInt();
5739 }
5740 
5742  string key,
5743  string end,
5744  string start,
5745  // Redis type: integer
5746  int count_count = 0
5747 ) {
5748  NWNXPushString("XREVRANGE");
5749  NWNXPushString(key);
5750  NWNXPushString(end);
5751  NWNXPushString(start);
5752  if (count_count != 0) NWNXPushString(IntToString(count_count));
5753  NWNXCall("NWNX_Redis", "Deferred");
5754  return NWNXPopInt();
5755 }
5756 
5758  string key
5759 ) {
5760  NWNXPushString("XLEN");
5761  NWNXPushString(key);
5762  NWNXCall("NWNX_Redis", "Deferred");
5763  return NWNXPopInt();
5764 }
5765 
5767  // Redis type: integer
5768  int count_count = 0,
5769  // Redis type: integer
5770  int block_milliseconds = 0,
5771  // Redis type: enum
5772  string streams = "",
5773  string key = "",
5774  string ID = ""
5775 ) {
5776  NWNXPushString("XREAD");
5777  if (count_count != 0) NWNXPushString(IntToString(count_count));
5778  if (block_milliseconds != 0) NWNXPushString(IntToString(block_milliseconds));
5779  NWNXPushString(streams);
5780  NWNXPushString(key);
5781  NWNXPushString(ID);
5782  NWNXCall("NWNX_Redis", "Deferred");
5783  return NWNXPopInt();
5784 }
5785 
5787  // Redis type: key
5788  string create_key = "",
5789  string create_groupname = "",
5790  string create_id_or__ = "",
5791  // Redis type: key
5792  string setid_key = "",
5793  string setid_groupname = "",
5794  string setid_id_or__ = "",
5795  // Redis type: key
5796  string destroy_key = "",
5797  string destroy_groupname = "",
5798  // Redis type: key
5799  string delconsumer_key = "",
5800  string delconsumer_groupname = "",
5801  string delconsumer_consumername = ""
5802 ) {
5803  NWNXPushString("XGROUP");
5804  if (create_key != "") NWNXPushString(create_key);
5805  if (create_groupname != "") NWNXPushString(create_groupname);
5806  if (create_id_or__ != "") NWNXPushString(create_id_or__);
5807  if (setid_key != "") NWNXPushString(setid_key);
5808  if (setid_groupname != "") NWNXPushString(setid_groupname);
5809  if (setid_id_or__ != "") NWNXPushString(setid_id_or__);
5810  if (destroy_key != "") NWNXPushString(destroy_key);
5811  if (destroy_groupname != "") NWNXPushString(destroy_groupname);
5812  if (delconsumer_key != "") NWNXPushString(delconsumer_key);
5813  if (delconsumer_groupname != "") NWNXPushString(delconsumer_groupname);
5814  if (delconsumer_consumername != "") NWNXPushString(delconsumer_consumername);
5815  NWNXCall("NWNX_Redis", "Deferred");
5816  return NWNXPopInt();
5817 }
5818 
5820  string group_group,
5821  string group_consumer,
5822  // Redis type: integer
5823  int count_count = 0,
5824  // Redis type: integer
5825  int block_milliseconds = 0,
5826  // Redis type: enum
5827  string noack = "",
5828  // Redis type: enum
5829  string streams = "",
5830  string key = "",
5831  string ID = ""
5832 ) {
5833  NWNXPushString("XREADGROUP");
5834  NWNXPushString(group_group);
5835  NWNXPushString(group_consumer);
5836  if (count_count != 0) NWNXPushString(IntToString(count_count));
5837  if (block_milliseconds != 0) NWNXPushString(IntToString(block_milliseconds));
5838  if (noack != "") NWNXPushString(noack);
5839  NWNXPushString(streams);
5840  NWNXPushString(key);
5841  NWNXPushString(ID);
5842  NWNXCall("NWNX_Redis", "Deferred");
5843  return NWNXPopInt();
5844 }
5845 
5847  string key,
5848  string group,
5849  string ID
5850 ) {
5851  NWNXPushString("XACK");
5852  NWNXPushString(key);
5853  NWNXPushString(group);
5854  NWNXPushString(ID);
5855  NWNXCall("NWNX_Redis", "Deferred");
5856  return NWNXPopInt();
5857 }
5858 
5860  string key,
5861  string group,
5862  string consumer,
5863  string min_idle_time,
5864  string ID,
5865  // Redis type: integer
5866  int idle_ms = 0,
5867  // Redis type: integer
5868  int time_ms_unix_time = 0,
5869  // Redis type: integer
5870  int retrycount_count = 0
5871 ) {
5872  NWNXPushString("XCLAIM");
5873  NWNXPushString(key);
5874  NWNXPushString(group);
5875  NWNXPushString(consumer);
5876  NWNXPushString(min_idle_time);
5877  NWNXPushString(ID);
5878  if (idle_ms != 0) NWNXPushString(IntToString(idle_ms));
5879  if (time_ms_unix_time != 0) NWNXPushString(IntToString(time_ms_unix_time));
5880  if (retrycount_count != 0) NWNXPushString(IntToString(retrycount_count));
5881  NWNXCall("NWNX_Redis", "Deferred");
5882  return NWNXPopInt();
5883 }
5884 
5886  string key,
5887  string group,
5888  string start = "",
5889  string end = "",
5890  // Redis type: integer
5891  int count = 0,
5892  string consumer = ""
5893 ) {
5894  NWNXPushString("XPENDING");
5895  NWNXPushString(key);
5896  NWNXPushString(group);
5897  if (start != "") NWNXPushString(start);
5898  if (end != "") NWNXPushString(end);
5899  if (count != 0) NWNXPushString(IntToString(count));
5900  if (consumer != "") NWNXPushString(consumer);
5901  NWNXCall("NWNX_Redis", "Deferred");
5902  return NWNXPopInt();
5903 }
5904 
int NWNX_Redis_SINTER(string key)
int NWNX_Redis_CLUSTER_SET_CONFIG_EPOCH(int config_epoch)
int NWNX_Redis_MIGRATE(string host, string port, string key, int destination_db, int timeout, string copy="", string replace="", string auth_password="", string keys_key="")
int NWNX_Redis_ZREM(string key, string member)
int NWNX_Redis_OBJECT(string subcommand, string arguments="")
int NWNX_Redis_DECR(string key)
int NWNX_Redis_SDIFFSTORE(string destination, string key)
int NWNX_Redis_RENAMENX(string key, string newkey)
int NWNX_Redis_HGET(string key, string field)
int NWNX_Redis_DISCARD()
int NWNX_Redis_PUBLISH(string channel, string message)
int NWNX_Redis_EVAL(string script, int numkeys, string key, string arg)
int NWNX_Redis_SUNION(string key)
int NWNX_Redis_ZRANGEBYSCORE(string key, float min, float max, string withscores="", int limit_offset=0, int limit_count=0)
int NWNX_Redis_FLUSHALL(string async="")
int NWNX_Redis_XDEL(string key, string ID)
int NWNX_Redis_MEMORY_HELP()
int NWNX_Redis_SRANDMEMBER(string key, int count=0)
int NWNX_Redis_GEOHASH(string key, string member)
int NWNX_Redis_CLUSTER_INFO()
int NWNX_Redis_CLUSTER_COUNTKEYSINSLOT(int slot)
int NWNX_Redis_SUNIONSTORE(string destination, string key)
int NWNX_Redis_APPEND(string key, string value)
int NWNX_Redis_TTL(string key)
int NWNX_Redis_MEMORY_USAGE(string key, int samples_count=0)
int NWNX_Redis_ZSCAN(string key, int cursor, string match_pattern="", int count_count=0)
int NWNX_Redis_CLIENT_KILL(string ip_port="", int id_client_id=0, string addr_ip_port="", string skipme_yes_no="")
int NWNX_Redis_HSETNX(string key, string field, string value)
int NWNX_Redis_CLUSTER_FORGET(string node_id)
int NWNX_Redis_SETBIT(string key, int offset, string value)
int NWNX_Redis_INCRBY(string key, int increment)
int NWNX_Redis_DEBUG_OBJECT(string key)
int NWNX_Redis_ROLE()
int NWNX_Redis_RENAME(string key, string newkey)
int NWNX_Redis_INCR(string key)
int NWNX_Redis_XINFO(string consumers_key="", string consumers_groupname="", string groups_key="", string stream_key="", string help="")
int NWNX_Redis_INCRBYFLOAT(string key, float increment)
int NWNX_Redis_SISMEMBER(string key, string member)
int NWNX_Redis_COMMAND_COUNT()
int NWNX_Redis_PFADD(string key, string element)
int NWNX_Redis_XREAD(int count_count=0, int block_milliseconds=0, string streams="", string key="", string ID="")
int NWNX_Redis_CLUSTER_REPLICATE(string node_id)
int NWNX_Redis_RANDOMKEY()
int NWNX_Redis_HEXISTS(string key, string field)
int NWNX_Redis_CLUSTER_ADDSLOTS(int slot)
int NWNX_Redis_MEMORY_DOCTOR()
int NWNX_Redis_XREADGROUP(string group_group, string group_consumer, int count_count=0, int block_milliseconds=0, string noack="", string streams="", string key="", string ID="")
int NWNX_Redis_SCRIPT_EXISTS(string sha1)
int NWNX_Redis_LINSERT(string key, string where, string pivot, string value)
int NWNX_Redis_CLIENT_GETNAME()
int NWNX_Redis_UNLINK(string key)
int NWNX_Redis_ZRANK(string key, string member)
int NWNX_Redis_CLUSTER_DELSLOTS(int slot)
int NWNX_Redis_SETRANGE(string key, int offset, string value)
int NWNX_Redis_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 NWNX_Redis_XREVRANGE(string key, string end, string start, int count_count=0)
int NWNX_Redis_CLIENT_ID()
int NWNX_Redis_SETNX(string key, string value)
int NWNX_Redis_MONITOR()
int NWNX_Redis_COMMAND()
int NWNX_Redis_RPUSH(string key, string value)
int NWNX_Redis_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 NWNX_Redis_SREM(string key, string member)
int NWNX_Redis_COMMAND_GETKEYS()
int NWNX_Redis_CLUSTER_NODES()
int NWNX_Redis_SETEX(string key, int seconds, string value)
int NWNX_Redis_MEMORY_STATS()
int NWNX_Redis_READONLY()
int NWNX_Redis_PFCOUNT(string key)
int NWNX_Redis_EXPIRE(string key, int seconds)
int NWNX_Redis_HDEL(string key, string field)
int NWNX_Redis_QUIT()
int NWNX_Redis_CONFIG_REWRITE()
int NWNX_Redis_GET(string key)
int NWNX_Redis_MULTI()
int NWNX_Redis_ZPOPMAX(string key, int count=0)
int NWNX_Redis_ZREVRANK(string key, string member)
int NWNX_Redis_HSCAN(string key, int cursor, string match_pattern="", int count_count=0)
int NWNX_Redis_RPOP(string key)
int NWNX_Redis_BZPOPMIN(string key, int timeout)
int NWNX_Redis_ZINTERSTORE(string destination, int numkeys, string key, int weights_weight=0, string aggregate_aggregate="")
int NWNX_Redis_ZRANGEBYLEX(string key, string min, string max, int limit_offset=0, int limit_count=0)
int NWNX_Redis_CLUSTER_REPLICAS(string node_id)
int NWNX_Redis_SYNC()
int NWNX_Redis_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 NWNX_Redis_HGETALL(string key)
int NWNX_Redis_MEMORY_MALLOC_STATS()
int NWNX_Redis_TIME()
int NWNX_Redis_BRPOP(string key, int timeout)
int NWNX_Redis_TOUCH(string key)
int NWNX_Redis_PING(string message="")
int NWNX_Redis_EXPIREAT(string key, string timestamp)
int NWNX_Redis_GETSET(string key, string value)
int NWNX_Redis_DBSIZE()
int NWNX_Redis_SLOWLOG(string subcommand, string argument="")
int NWNX_Redis_CLUSTER_KEYSLOT(string key)
int NWNX_Redis_BGSAVE()
int NWNX_Redis_XADD(string key, string ID, string field, string str)
int NWNX_Redis_WAIT(int numreplicas, int timeout)
int NWNX_Redis_PSETEX(string key, int milliseconds, string value)
int NWNX_Redis_CLIENT_LIST()
int NWNX_Redis_RPOPLPUSH(string source, string destination)
int NWNX_Redis_EXISTS(string key)
int NWNX_Redis_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 NWNX_Redis_ZREVRANGEBYSCORE(string key, float max, float min, string withscores="", int limit_offset=0, int limit_count=0)
int NWNX_Redis_BITPOS(string key, int bit, int start=0, int end=0)
int NWNX_Redis_BLPOP(string key, int timeout)
int NWNX_Redis_SADD(string key, string member)
int NWNX_Redis_HMSET(string key, string field, string value)
int NWNX_Redis_GEOADD(string key, float longitude, float latitude, string member)
int NWNX_Redis_CLIENT_SETNAME(string connection_name)
int NWNX_Redis_SCRIPT_LOAD(string script)
int NWNX_Redis_SAVE()
int NWNX_Redis_KEYS(string pattern)
int NWNX_Redis_ZSCORE(string key, string member)
int NWNX_Redis_SMEMBERS(string key)
int NWNX_Redis_CLUSTER_SAVECONFIG()
int NWNX_Redis_MOVE(string key, int db)
int NWNX_Redis_MSETNX(string key, string value)
int NWNX_Redis_BRPOPLPUSH(string source, string destination, int timeout)
int NWNX_Redis_LASTSAVE()
int NWNX_Redis_STRLEN(string key)
int NWNX_Redis_SCRIPT_FLUSH()
int NWNX_Redis_DEL(string key)
int NWNX_Redis_MSET(string key, string value)
int NWNX_Redis_LLEN(string key)
int NWNX_Redis_SCRIPT_DEBUG(string mode)
int NWNX_Redis_CLUSTER_SETSLOT(int slot, string subcommand, string node_id="")
int NWNX_Redis_SCARD(string key)
int NWNX_Redis_PTTL(string key)
int NWNX_Redis_SCAN(int cursor, string match_pattern="", int count_count=0, string type_type="")
int NWNX_Redis_CLUSTER_FAILOVER(string options="")
int NWNX_Redis_HINCRBYFLOAT(string key, string field, float increment)
int NWNX_Redis_XRANGE(string key, string start, string end, int count_count=0)
int NWNX_Redis_ZREMRANGEBYLEX(string key, string min, string max)
int NWNX_Redis_DECRBY(string key, int decrement)
int NWNX_Redis_GEOPOS(string key, string member)
int NWNX_Redis_ZREVRANGE(string key, int start, int stop, string withscores="")
int NWNX_Redis_RPUSHX(string key, string value)
int NWNX_Redis_ZRANGE(string key, int start, int stop, string withscores="")
int NWNX_Redis_MGET(string key)
int NWNX_Redis_PERSIST(string key)
int NWNX_Redis_ZADD(string key, string condition="", string change="", string increment="", float score=0.0, string member="")
int NWNX_Redis_XACK(string key, string group, string ID)
int NWNX_Redis_EXEC()
int NWNX_Redis_BITCOUNT(string key, int start=0, int end=0)
int NWNX_Redis_ZREVRANGEBYLEX(string key, string max, string min, int limit_offset=0, int limit_count=0)
int NWNX_Redis_RESTORE(string key, int ttl, string serialized_value, string replace="", string absttl="", int idletime_seconds=0, int freq_frequency=0)
int NWNX_Redis_ZLEXCOUNT(string key, string min, string max)
int NWNX_Redis_CLIENT_REPLY(string reply_mode)
int NWNX_Redis_EVALSHA(string sha1, int numkeys, string key, string arg)
int NWNX_Redis_ZUNIONSTORE(string destination, int numkeys, string key, int weights_weight=0, string aggregate_aggregate="")
int NWNX_Redis_ZREMRANGEBYRANK(string key, int start, int stop)
int NWNX_Redis_REPLICAOF(string host, string port)
int NWNX_Redis_CLUSTER_MEET(string ip, int port)
int NWNX_Redis_READWRITE()
int NWNX_Redis_ECHO(string message)
int NWNX_Redis_ZCARD(string key)
int NWNX_Redis_ZCOUNT(string key, float min, float max)
int NWNX_Redis_SWAPDB(int index, int index_1)
int NWNX_Redis_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 NWNX_Redis_LPUSH(string key, string value)
int NWNX_Redis_INFO(string section="")
int NWNX_Redis_ZREMRANGEBYSCORE(string key, float min, float max)
int NWNX_Redis_HMGET(string key, string field)
int NWNX_Redis_CLIENT_PAUSE(int timeout)
int NWNX_Redis_SINTERSTORE(string destination, string key)
int NWNX_Redis_CLUSTER_SLOTS()
int NWNX_Redis_HVALS(string key)
int NWNX_Redis_LPOP(string key)
int NWNX_Redis_LTRIM(string key, int start, int stop)
int NWNX_Redis_AUTH(string password)
int NWNX_Redis_TYPE(string key)
int NWNX_Redis_LPUSHX(string key, string value)
int NWNX_Redis_SMOVE(string source, string destination, string member)
int NWNX_Redis_SPOP(string key, int count=0)
int NWNX_Redis_CONFIG_RESETSTAT()
int NWNX_Redis_SSCAN(string key, int cursor, string match_pattern="", int count_count=0)
int NWNX_Redis_SDIFF(string key)
int NWNX_Redis_LSET(string key, int index, string value)
int NWNX_Redis_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 NWNX_Redis_COMMAND_INFO(string command_name)
int NWNX_Redis_PUBSUB(string subcommand, string argument="")
int NWNX_Redis_BITOP(string operation, string destkey, string key)
int NWNX_Redis_MEMORY_PURGE()
int NWNX_Redis_CONFIG_GET(string parameter)
int NWNX_Redis_XLEN(string key)
int NWNX_Redis_SET(string key, string value, string condition="")
int NWNX_Redis_BZPOPMAX(string key, int timeout)
int NWNX_Redis_FLUSHDB(string async="")
int NWNX_Redis_CLUSTER_COUNT_FAILURE_REPORTS(string node_id)
int NWNX_Redis_HSTRLEN(string key, string field)
int NWNX_Redis_CLUSTER_GETKEYSINSLOT(int slot, int count)
int NWNX_Redis_BGREWRITEAOF()
int NWNX_Redis_DUMP(string key)
int NWNX_Redis_XPENDING(string key, string group, string start="", string end="", int count=0, string consumer="")
int NWNX_Redis_SCRIPT_KILL()
int NWNX_Redis_LINDEX(string key, int index)
int NWNX_Redis_CLIENT_UNBLOCK(string client_id, string unblock_type="")
int NWNX_Redis_WATCH(string key)
int NWNX_Redis_HKEYS(string key)
int NWNX_Redis_GETRANGE(string key, int start, int end)
int NWNX_Redis_LREM(string key, int count, string value)
int NWNX_Redis_CONFIG_SET(string parameter, string value)
int NWNX_Redis_GETBIT(string key, int offset)
int NWNX_Redis_HINCRBY(string key, string field, int increment)
int NWNX_Redis_PEXPIREAT(string key, string milliseconds_timestamp)
int NWNX_Redis_HSET(string key, string field, string value)
int NWNX_Redis_HLEN(string key)
int NWNX_Redis_SHUTDOWN(string save_mode="")
int NWNX_Redis_XTRIM(string key, string strategy, string approx="", int count=0)
int NWNX_Redis_DEBUG_SEGFAULT()
int NWNX_Redis_ZINCRBY(string key, int increment, string member)
int NWNX_Redis_CLUSTER_RESET(string reset_type="")
int NWNX_Redis_UNWATCH()
int NWNX_Redis_ZPOPMIN(string key, int count=0)
int NWNX_Redis_PFMERGE(string destkey, string sourcekey)
int NWNX_Redis_CLUSTER_SLAVES(string node_id)
int NWNX_Redis_LRANGE(string key, int start, int stop)
int NWNX_Redis_SELECT(int index)
int NWNX_Redis_SLAVEOF(string host, string port)
int NWNX_Redis_GEODIST(string key, string member1, string member2, string unit="")
int NWNX_Redis_PEXPIRE(string key, int milliseconds)