microsphere-projects / microsphere-redis Goto Github PK
View Code? Open in Web Editor NEWThe microsphere projects for Redis
License: Apache License 2.0
The microsphere projects for Redis
License: Apache License 2.0
把MethodHandle 存储在一个static final 的map中
再根据方法签名找到对应的Methodhandle
再用invokeWithArguments
执行redis命令
Object[] args = new Object[3];
args[0] = connection.stringCommands();
args[1] = "key".getBytes(StandardCharsets.UTF_8);
args[2] = "value".getBytes(StandardCharsets.UTF_8);
methodhandle.invokeWithArguments(args);
jmh Benchmark:
https://github.com/liqi19950722/fun-stuff-reflect
通过连接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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.