Package com.arms.api.util.redisrepo
Class RedisSetCommand
java.lang.Object
com.arms.api.util.redisrepo.RedisSetCommand
-
Constructor Summary
ConstructorsConstructorDescriptionRedisSetCommand(org.springframework.data.redis.core.RedisTemplate<String, Object> redisTemplate) -
Method Summary
Modifier and TypeMethodDescriptionSet에 하나 이상의 멤버를 추가 (SADD)difference(String key, String otherKey) 두 Set의 차집합을 조회 (SDIFF)Set의 모든 멤버를 조회 (SMEMBERS)랜덤 멤버를 조회 (SRANDMEMBER)랜덤 멤버를 count개 조회 (SRANDMEMBER count)두 Set의 교집합을 조회 (SINTER)Set에 특정 멤버가 존재하는지 확인 (SISMEMBER)Set에서 랜덤 멤버를 꺼냄 (SPOP)Set에서 하나 이상의 멤버를 삭제 (SREM)Set의 멤버 수를 조회 (SCARD)두 Set의 합집합을 조회 (SUNION)
-
Constructor Details
-
RedisSetCommand
-
-
Method Details
-
add
Set에 하나 이상의 멤버를 추가 (SADD) -
getAll
Set의 모든 멤버를 조회 (SMEMBERS) -
size
Set의 멤버 수를 조회 (SCARD) -
isMember
Set에 특정 멤버가 존재하는지 확인 (SISMEMBER) -
getRandom
랜덤 멤버를 조회 (SRANDMEMBER) -
getRandom
랜덤 멤버를 count개 조회 (SRANDMEMBER count) -
union
두 Set의 합집합을 조회 (SUNION) -
intersect
두 Set의 교집합을 조회 (SINTER) -
difference
두 Set의 차집합을 조회 (SDIFF) -
remove
Set에서 하나 이상의 멤버를 삭제 (SREM) -
pop
Set에서 랜덤 멤버를 꺼냄 (SPOP)
-