Redis查找keys jedis.keys redisTemplate.keys Set<String> keys

// 查找keys
// Set keys = jedis.keys(RedisConstant.PREFIX_STDEXAMLIBS_MD5_ACTIVETEMP + "*");
Set keys = redisTemplate.keys(RedisConstant.PREFIX_ORG_LISTTREE + "*");
// 删除keys
redisTemplate.delete(keys);

你可能感兴趣的:(java,前端,服务器)