Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find Redis Write Command #1

Open
liqi19950722 opened this issue Mar 13, 2024 · 0 comments
Open

Find Redis Write Command #1

liqi19950722 opened this issue Mar 13, 2024 · 0 comments

Comments

@liqi19950722
Copy link

通过连接RedisSever,执行ACL CAT "write"(6.0提供),可以获取所有写指令
再用反射查找出所有RedisCommands中的写方法
RedisServer(7.0)中的写指令 (108个)
lettuce CommandType中能对应到的(96个)
RedisCommands中的方法 (120个)
以下12个指令未对应上:

FUNCTION|DELETE
FUNCTION|FLUSH
FUNCTION|LOAD
FUNCTION|RESTORE
PFDEBUG
RESTORE-ASKING
XGROUP|CREATE
XGROUP|CREATECONSUMER
XGROUP|DELCONSUMER
XGROUP|DESTROY
XGROUP|SETID
XSETID

实现思路:
https://github.com/liqi19950722/redis-testcontainers/blob/master/src/test/java/io/github/fun/stuff/redis/RedisConnectionTest.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant