List of usage examples for org.springframework.data.redis.connection StringRedisConnection sAdd
Long sAdd(String key, String... values);
From source file:com.ge.predix.acs.policy.evaluation.cache.RedisPolicyEvaluationCache.java
@Override void setResourceTranslations(final Set<String> fromKeys, final String toKey) { this.redisTemplate.execute(new RedisCallback<List<Object>>() { @Override/*from w w w . j a v a 2 s.c o m*/ public List<Object> doInRedis(final RedisConnection connection) throws DataAccessException { StringRedisConnection stringRedisConn = new DefaultStringRedisConnection(connection); for (String fromKey : fromKeys) { stringRedisConn.sAdd(fromKey, toKey); } return null; } }); }