|
@@ -0,0 +1,220 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+ * Created by PhpStorm.
|
|
|
+ * User: Tioncico
|
|
|
+ * Date: 2019/9/28 0028
|
|
|
+ * Time: 11:38
|
|
|
+ */
|
|
|
+
|
|
|
+namespace EasySwoole\Redis;
|
|
|
+
|
|
|
+
|
|
|
+class CommandConst
|
|
|
+{
|
|
|
+ const DEL = 'DEL';
|
|
|
+ const UNLINK = 'UNLINK';
|
|
|
+ const DUMP = 'DUMP';
|
|
|
+ const EXISTS = 'EXISTS';
|
|
|
+ const EXPIRE = 'EXPIRE';
|
|
|
+ const EXPIREAT = 'EXPIREAT';
|
|
|
+ const PEXPIRE = 'PEXPIRE';
|
|
|
+ const PEXPIREAT = 'PEXPIREAT';
|
|
|
+ const KEYS = 'KEYS';
|
|
|
+ const MOVE = 'MOVE';
|
|
|
+ const PERSIST = 'PERSIST';
|
|
|
+ const PTTL = 'PTTL';
|
|
|
+ const TTL = 'TTL';
|
|
|
+ const RANDOMKEY = 'RANDOMKEY';
|
|
|
+ const RENAME = 'RENAME';
|
|
|
+ const RENAMENX = 'RENAMENX';
|
|
|
+ const TYPE = 'TYPE';
|
|
|
+
|
|
|
+
|
|
|
+ const SET = 'SET';
|
|
|
+ const GET = 'GET';
|
|
|
+ const GETRANGE = 'GETRANGE';
|
|
|
+ const GETSET = 'GETSET';
|
|
|
+ const MGET = 'MGET';
|
|
|
+ const SETEX = 'SETEX';
|
|
|
+ const SETNX = 'SETNX';
|
|
|
+ const SETRANGE = 'SETRANGE';
|
|
|
+ const STRLEN = 'STRLEN';
|
|
|
+ const MSET = 'MSET';
|
|
|
+ const MSETNX = 'MSETNX';
|
|
|
+ const PSETEX = 'PSETEX';
|
|
|
+ const INCR = 'INCR';
|
|
|
+ const INCRBY = 'INCRBY';
|
|
|
+ const INCRBYFLOAT = 'INCRBYFLOAT';
|
|
|
+ const DECR = 'DECR';
|
|
|
+ const DECRBY = 'DECRBY';
|
|
|
+ const APPEND = 'APPEND';
|
|
|
+ const SCAN = 'SCAN';
|
|
|
+
|
|
|
+
|
|
|
+ const HDEL = 'HDEL';
|
|
|
+ const HEXISTS = 'HEXISTS';
|
|
|
+ const HGET = 'HGET';
|
|
|
+ const HGETALL = 'HGETALL';
|
|
|
+ const HINCRBY = 'HINCRBY';
|
|
|
+ const HINCRBYFLOAT = 'HINCRBYFLOAT';
|
|
|
+ const HKEYS = 'HKEYS';
|
|
|
+ const HLEN = 'HLEN';
|
|
|
+ const HMGET = 'HMGET';
|
|
|
+ const HMSET = 'HMSET';
|
|
|
+ const HSET = 'HSET';
|
|
|
+ const HSETNX = 'HSETNX';
|
|
|
+ const HVALS = 'HVALS';
|
|
|
+ const HSCAN = 'HSCAN';
|
|
|
+
|
|
|
+
|
|
|
+ const BLPOP = 'BLPOP';
|
|
|
+ const BRPOP = 'BRPOP';
|
|
|
+ const BRPOPLPUSH = 'BRPOPLPUSH';
|
|
|
+ const LINDEX = 'LINDEX';
|
|
|
+ const LINSERT = 'LINSERT';
|
|
|
+ const LLEN = 'LLEN';
|
|
|
+ const LPOP = 'LPOP';
|
|
|
+ const LPUSH = 'LPUSH';
|
|
|
+ const LPUSHX = 'LPUSHX';
|
|
|
+ const LRANGE = 'LRANGE';
|
|
|
+ const LREM = 'LREM';
|
|
|
+ const LSET = 'LSET';
|
|
|
+ const LTRIM = 'LTRIM';
|
|
|
+ const RPOP = 'RPOP';
|
|
|
+ const RPOPLPUSH = 'RPOPLPUSH';
|
|
|
+ const RPUSH = 'RPUSH';
|
|
|
+ const RPUSHX = 'RPUSHX';
|
|
|
+
|
|
|
+
|
|
|
+ const SADD = 'SADD';
|
|
|
+ const SCARD = 'SCARD';
|
|
|
+ const SDIFF = 'SDIFF';
|
|
|
+ const SDIFFSTORE = 'SDIFFSTORE';
|
|
|
+ const SINTER = 'SINTER';
|
|
|
+ const SINTERSTORE = 'SINTERSTORE';
|
|
|
+ const SISMEMBER = 'SISMEMBER';
|
|
|
+ const SMEMBERS = 'SMEMBERS';
|
|
|
+ const SMOVE = 'SMOVE';
|
|
|
+ const SPOP = 'SPOP';
|
|
|
+ const SRANDMEMBER = 'SRANDMEMBER';
|
|
|
+ const SREM = 'SREM';
|
|
|
+ const SUNION = 'SUNION';
|
|
|
+ const SUNIONSTORE = 'SUNIONSTORE';
|
|
|
+ const SSCAN = 'SSCAN';
|
|
|
+
|
|
|
+ const GETBIT = 'GETBIT';
|
|
|
+ const SETBIT = 'SETBIT';
|
|
|
+ const BITCOUNT = 'BITCOUNT';
|
|
|
+ const BITPOS = 'BITPOS';
|
|
|
+ const BITOP = 'BITOP';
|
|
|
+ const BITFIELD = 'BITFIELD';
|
|
|
+
|
|
|
+
|
|
|
+ const ZADD = 'ZADD';
|
|
|
+ const ZCARD = 'ZCARD';
|
|
|
+ const ZCOUNT = 'ZCOUNT';
|
|
|
+ const ZINCRBY = 'ZINCRBY';
|
|
|
+ const ZINTERSTORE = 'ZINTERSTORE';
|
|
|
+ const ZLEXCOUNT = 'ZLEXCOUNT';
|
|
|
+ const ZRANGE = 'ZRANGE';
|
|
|
+ const ZPOPMAX = 'ZPOPMAX';
|
|
|
+ const ZPOPMIN = 'ZPOPMIN';
|
|
|
+ const ZRANGEBYLEX = 'ZRANGEBYLEX';
|
|
|
+ const ZRANGEBYSCORE = 'ZRANGEBYSCORE';
|
|
|
+ const ZRANK = 'ZRANK';
|
|
|
+ const ZREM = 'ZREM';
|
|
|
+ const ZREMRANGEBYLEX = 'ZREMRANGEBYLEX';
|
|
|
+ const ZREMRANGEBYRANK = 'ZREMRANGEBYRANK';
|
|
|
+ const ZREMRANGEBYSCORE = 'ZREMRANGEBYSCORE';
|
|
|
+ const ZREVRANGE = 'ZREVRANGE';
|
|
|
+ const ZREVRANGEBYSCORE = 'ZREVRANGEBYSCORE';
|
|
|
+ const ZREVRANK = 'ZREVRANK';
|
|
|
+ const ZSCORE = 'ZSCORE';
|
|
|
+ const ZUNIONSTORE = 'ZUNIONSTORE';
|
|
|
+ const ZSCAN = 'ZSCAN';
|
|
|
+ const BZPOPMAX = 'BZPOPMAX';
|
|
|
+ const BZPOPMIN = 'BZPOPMIN';
|
|
|
+
|
|
|
+
|
|
|
+ const XADD = 'XADD';
|
|
|
+ const XLEN = 'XLEN';
|
|
|
+ const XDEL = 'XDEL';
|
|
|
+ const XRANGE = 'XRANGE';
|
|
|
+ const XREVRANGE = 'XREVRANGE';
|
|
|
+ const XREAD = 'XREAD';
|
|
|
+ const XGROUP = 'XGROUP';
|
|
|
+ const XREADGROUP = 'XREADGROUP';
|
|
|
+ const XACK = 'XACK';
|
|
|
+ const XINFO = 'XINFO';
|
|
|
+ const XCLAIM = 'XCLAIM';
|
|
|
+ const XPENDING = 'XPENDING';
|
|
|
+ const XTRIM = 'XTRIM';
|
|
|
+
|
|
|
+ const PFADD = 'PFADD';
|
|
|
+ const PFCOUNT = 'PFCOUNT';
|
|
|
+ const PFMERGE = 'PFMERGE';
|
|
|
+
|
|
|
+ const PSUBSCRIBE = 'PSUBSCRIBE';
|
|
|
+ const PUBSUB = 'PUBSUB';
|
|
|
+ const PUBLISH = 'PUBLISH';
|
|
|
+ const PUNSUBSCRIBE = 'PUNSUBSCRIBE';
|
|
|
+ const SUBSCRIBE = 'SUBSCRIBE';
|
|
|
+ const UNSUBSCRIBE = 'UNSUBSCRIBE';
|
|
|
+
|
|
|
+ const DISCARD = 'DISCARD';
|
|
|
+ const EXEC = 'EXEC';
|
|
|
+ const MULTI = 'MULTI';
|
|
|
+ const UNWATCH = 'UNWATCH';
|
|
|
+ const WATCH = 'WATCH';
|
|
|
+
|
|
|
+
|
|
|
+ const EVAL = 'EVAL';
|
|
|
+ const EVALSHA = 'EVALSHA';
|
|
|
+ const SCRIPT = 'SCRIPT';
|
|
|
+ const SCRIPT_EXISTS = 'SCRIPT EXISTS';
|
|
|
+ const SCRIPT_FLUSH = 'SCRIPT FLUSH';
|
|
|
+ const SCRIPT_KILL = 'SCRIPT KILL';
|
|
|
+ const SCRIPT_LOAD = 'SCRIPT LOAD';
|
|
|
+
|
|
|
+
|
|
|
+ const AUTH = 'AUTH';
|
|
|
+ const ECHO = 'ECHO';
|
|
|
+ const PING = 'PING';
|
|
|
+ const QUIT = 'QUIT';
|
|
|
+ const SELECT = 'SELECT';
|
|
|
+
|
|
|
+
|
|
|
+ const BGREWRITEAOF = 'BGREWRITEAOF';
|
|
|
+ const BGSAVE = 'BGSAVE';
|
|
|
+ const CLIENT = 'CLIENT';
|
|
|
+ const COMMAND = 'COMMAND';
|
|
|
+ const COMMAND_COUNT = 'COMMAND COUNT';
|
|
|
+ const TIME = 'TIME';
|
|
|
+ const CONFIG = 'CONFIG';
|
|
|
+ const DBSIZE = 'DBSIZE';
|
|
|
+ const DEBUG = 'DEBUG';
|
|
|
+ const FLUSHALL = 'FLUSHALL';
|
|
|
+ const FLUSHDB = 'FLUSHDB';
|
|
|
+ const INFO = 'INFO';
|
|
|
+ const LASTSAVE = 'LASTSAVE';
|
|
|
+ const MONITOR = 'MONITOR';
|
|
|
+ const ROLE = 'ROLE';
|
|
|
+ const SAVE = 'SAVE';
|
|
|
+ const SHUTDOWN = 'SHUTDOWN';
|
|
|
+ const SLAVEOF = 'SLAVEOF';
|
|
|
+ const SLOWLOG = 'SLOWLOG';
|
|
|
+ const SYNC = 'SYNC';
|
|
|
+
|
|
|
+
|
|
|
+ const GEOADD = 'GEOADD';
|
|
|
+ const GEODIST = 'GEODIST';
|
|
|
+ const GEOHASH = 'GEOHASH';
|
|
|
+ const GEOPOS = 'GEOPOS';
|
|
|
+ const GEORADIUS = 'GEORADIUS';
|
|
|
+ const GEORADIUSBYMEMBER = 'GEORADIUSBYMEMBER';
|
|
|
+
|
|
|
+
|
|
|
+ const CLUSTER = 'CLUSTER';
|
|
|
+ const READONLY = 'READONLY';
|
|
|
+ const READWRITE = 'READWRITE';
|
|
|
+}
|