标签:err 前缀 集群 exception get class 删除 cep ret
public Set<String> getByPrefix(String key) { Set<String> setResult = new HashSet<>(); try { ShardedJedis jedis = redisDataSource.getJedisClient(); Iterator<Jedis> jedisIterator = jedis.getAllShards().iterator(); while(jedisIterator.hasNext()){ setResult = jedisIterator.next().keys(key+"*"); } } catch (Exception e) { logger.error(e.getMessage(), e); } return setResult; }
标签:err 前缀 集群 exception get class 删除 cep ret
原文地址:http://www.cnblogs.com/gaoxufei/p/6617140.html