1.代码实现 /** <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>2.9.0</version> </dependency> */ import redis.clients.jedis.Jedis; import java.util.*; public class RedisUtil {