Example usage for org.springframework.data.redis.support.collections DefaultRedisSet DefaultRedisSet

List of usage examples for org.springframework.data.redis.support.collections DefaultRedisSet DefaultRedisSet

Introduction

In this page you can find the example usage for org.springframework.data.redis.support.collections DefaultRedisSet DefaultRedisSet.

Prototype

public DefaultRedisSet(String key, RedisOperations<String, E> operations) 

Source Link

Document

Constructs a new DefaultRedisSet instance.

Usage

From source file:com.afousan.service.RetwisRepository.java

private RedisSet<String> following(String uid) {
    return new DefaultRedisSet<String>(KeyUtils.following(uid), template);
}

From source file:com.afousan.service.RetwisRepository.java

private RedisSet<String> followers(String uid) {
    return new DefaultRedisSet<String>(KeyUtils.followers(uid), template);
}