以键值对方式存储键都是字符串值:String,hash,list set,sortedsetString的方法:set,get,delhash方法 : hget,hdellist方法: lpush,rpush,lpop,rpop持久化操作:
Jedis
两个jar包
使用方式:在这里插入代码片
Jedis jedis=new Jedis(JedisPoolConfig,"localhost",6379);
JedisPoolConfig jedisPoolConfig=new JedisPoolConfig();
jedisPoolConfig.setMaxIdle(10);
JedisPool jedisPool=new JedisPool(jedisPoolConfig,"localhost",6379);
Jedis jedis = jedisPool.getResource();



