-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mode to operation READ/WRITE/DELETE
- Loading branch information
Showing
3 changed files
with
245 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
230 changes: 230 additions & 0 deletions
230
...curity-api/src/main/java/com/newrelic/api/agent/security/schema/helper/RedisCommands.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,230 @@ | ||
package com.newrelic.api.agent.security.schema.helper; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
public class RedisCommands { | ||
|
||
public static final List<String> readCommands = Arrays.asList( | ||
"ACL", | ||
"BITCOUNT", | ||
"BITPO", | ||
"CONFIG", | ||
"DBSIZE", | ||
"DUMP", | ||
"ECHO", | ||
"EVAL", | ||
"EVAL_RO", | ||
"EVALSHA", | ||
"EVALSHA_RO", | ||
"EXISTS", | ||
"EXPIRETIME", | ||
"GEODIST", | ||
"GEOHASH", | ||
"GEOPOS", | ||
"GEORADIUS", | ||
"GEORADIUS_RO", | ||
"GEORADIUSBYMEMBER", | ||
"GEORADIUSBYMEMBER_RO", | ||
"GEOSEARCH", | ||
"GET", | ||
"GETBIT", | ||
"GETDEL", | ||
"GETEX", | ||
"GETRANGE", | ||
"GETSET", | ||
"HEXISTS", | ||
"HGET", | ||
"HGETALL", | ||
"HKEYS", | ||
"HLEN", | ||
"HMGET", | ||
"HRANDFIELD", | ||
"HSCAN", | ||
"HSTRLEN", | ||
"HVALS", | ||
"INFO", | ||
"KEYS", | ||
"LINDEX", | ||
"LLEN", | ||
"LPOS", | ||
"LRANGE", | ||
"MEMORY", | ||
"MGET", | ||
"MODULE LIST", | ||
"OBJECT", | ||
"PFCOUNT", | ||
"PTTL", | ||
"RANDOMKEY", | ||
"SCAN", | ||
"SCARD", | ||
"SCRIPT", | ||
"SDIFF", | ||
"SDIFFSTORE", | ||
"SINTER", | ||
"SINTERCARD", | ||
"SINTERSTORE", | ||
"SISMEMBER", | ||
"SLOWLOG", | ||
"SMEMBERS", | ||
"SMISMEMBER", | ||
"SORT", | ||
"SORT_RO", | ||
"SRANDMEMBER", | ||
"SSCAN", | ||
"STRLEN", | ||
"SUNION", | ||
"SUNIONSTORE", | ||
"TOUCH", | ||
"TTL", | ||
"TYPE", | ||
"XACK", | ||
"XINFO", | ||
"XLEN", | ||
"XPENDING", | ||
"XRANGE", | ||
"XREAD", | ||
"XREADGROUP", | ||
"XREVRANGE", | ||
"ZCARD", | ||
"ZCOUNT", | ||
"ZDIFF", | ||
"ZDIFFSTORE", | ||
"ZINTER", | ||
"ZINTERCARD", | ||
"ZLEXCOUNT", | ||
"ZMSCORE", | ||
"ZRANDMEMBER", | ||
"ZRANGE", | ||
"ZRANGEBYLEX", | ||
"ZRANGEBYSCORE", | ||
"ZRANGESTORE", | ||
"ZRANK", | ||
"ZREVRANGE", | ||
"ZREVRANGEBYLEX", | ||
"ZREVRANGEBYSCORE", | ||
"ZREVRANK", | ||
"ZSCAN", | ||
"ZSCORE", | ||
"ZUNION", | ||
"ZUNIONSTORE" | ||
); | ||
|
||
public static final List<String> writeCommands = Arrays.asList( | ||
"ACL", | ||
"APPEND", | ||
"BITPOS", | ||
"BGREWRITEAOF", | ||
"BITFIELD", | ||
"BITOP", | ||
"BLMOVE", | ||
"BRPOPLPUSH", | ||
"CONFIG", | ||
"COPY", | ||
"DECR", | ||
"DECRBY", | ||
"EVAL", | ||
"EVALSHA", | ||
"EXPIRE", | ||
"EXPIREAT", | ||
"GEOADD", | ||
"GEOSEARCHSTORE", | ||
"GETEX", | ||
"GETSET", | ||
"HINCRBY", | ||
"HINCRBYFLOAT", | ||
"HMSET", | ||
"HSET", | ||
"HSETNX", | ||
"INCR", | ||
"INCRBY", | ||
"INCRBYFLOAT", | ||
"LINSERT", | ||
"LMOVE", | ||
"LPUSH", | ||
"LPUSHX", | ||
"LSET", | ||
"MIGRATE", | ||
"MOVE", | ||
"MSET", | ||
"MSETNX", | ||
"PERSIST", | ||
"PEXPIRE", | ||
"PEXPIREAT", | ||
"PEXPIRETIME", | ||
"PFADD", | ||
"PFMERGE", | ||
"PSETEX", | ||
"RENAME", | ||
"RENAMENX", | ||
"RESTORE", | ||
"RPOPLPUSH", | ||
"RPUSH", | ||
"RPUSHX", | ||
"SADD", | ||
"SCRIPT DEBUG", | ||
"SDIFFSTORE", | ||
"SET", | ||
"SETEX", | ||
"SETBIT", | ||
"SETNX", | ||
"SETRANGE", | ||
"SINTERSTORE", | ||
"SMOVE", | ||
"SUNIONSTORE", | ||
"SWAPDB", | ||
"XADD", | ||
"XAUTOCLAIM", | ||
"XCLAIM", | ||
"XGROUP", | ||
"ZADD", | ||
"ZDIFFSTORE", | ||
"ZINCRBY", | ||
"ZINTERSTORE", | ||
"ZRANGESTORE", | ||
"ZUNIONSTORE" | ||
); | ||
|
||
public static final List<String> deleteCommands = Arrays.asList( | ||
"ACL", | ||
"BLMPOP", | ||
"BLPOP", | ||
"BRPOP", | ||
"BRPOPLPUSH", | ||
"BZPOPMAX", | ||
"BZPOPMIN", | ||
"DEL", | ||
"DISCARD", | ||
"EVAL", | ||
"EVALSHA", | ||
"FLUSHALL", | ||
"FLUSHDB", | ||
"GETDEL", | ||
"HDEL", | ||
"LMPOP", | ||
"LPOP", | ||
"LREM", | ||
"MEMORY", | ||
"RPOP", | ||
"RPOPLPUSH", | ||
"SCRIPT", | ||
"SLOWLOG", | ||
"SPOP", | ||
"SREM", | ||
"UNLINK", | ||
"LTRIM", | ||
"XDEL", | ||
"XGROUP ", | ||
"XTRIM", | ||
"ZPOPMAX", | ||
"ZPOPMIN", | ||
"ZREM", | ||
"ZREMRANGEBYLEX", | ||
"ZREMRANGEBYRANK", | ||
"ZREMRANGEBYSCORE" | ||
); | ||
|
||
public static final String READ_COMMAND = "READ"; | ||
public static final String WRITE_COMMAND = "WRITE"; | ||
public static final String DELETE_COMMAND = "DELETE" ; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters