Recently, I am learning the use of Redis. I use Java to write the Redis client to access the Redis code. The client I use is Jedis. During the use process, I am interested in writing the CS structure C-side code. I am going to see the Jedis code implementation and record it.
First look at Jedis's simplest set command calling process
Jedis jedis = new Jedis("localhost"); jedis.set("foo", "bar");
The complete code call UML sequence diagram is as follows: