redis How to Connect to Redis in Java using Jedis Executing Basic Get/Set Commands


Example

Once you have established a connection to Redis you can get and set values using the Jedis connection object:

Get

String value = jedis.get(myKey);

Set

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