执行基本 GetSet 命令

建立与 Redis 的连接后,你可以使用 Jedis 连接对象获取和设置值:

得到

String value = jedis.get(myKey);

组

jedis.put(myKey, "some value");