Example usage for org.springframework.data.redis.connection StringRedisConnection sMembers

List of usage examples for org.springframework.data.redis.connection StringRedisConnection sMembers

Introduction

In this page you can find the example usage for org.springframework.data.redis.connection StringRedisConnection sMembers.

Prototype

Set<String> sMembers(String key);

Source Link

Document

Get all elements of set at key .

Usage

From source file:com.ge.predix.acs.policy.evaluation.cache.RedisPolicyEvaluationCache.java

@Override
List<Object> multiGetResourceTranslations(final List<String> fromKeys) {
    // Pipelining makes sure we don't pay excessive RTT penalties.
    return this.redisTemplate.executePipelined(new RedisCallback<List<Object>>() {
        @Override/*from  ww 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.sMembers(fromKey);
            }
            return null;
        }
    }, new StringRedisSerializer());
}