Package com.arms.api.util.redisrepo
Class RedisStringCommand
java.lang.Object
com.arms.api.util.redisrepo.RedisStringCommand
-
Constructor Summary
ConstructorsConstructorDescriptionRedisStringCommand(org.springframework.data.redis.core.RedisTemplate<String, Object> redisTemplate) -
Method Summary
Modifier and TypeMethodDescription키의 값 뒤에 문자열을 추가 (APPEND)키의 값을 1 감소 (DECR)키의 값을 정수만큼 감소 (DECRBY)키의 값을 조회 (GET)키의 값을 조회하고 새 값으로 교체 (GETSET)getMulti(Collection<String> keys) 여러 키의 값을 한번에 조회 (MGET)키의 값을 1 증가 (INCR)/** 키의 값을 정수만큼 증가 (INCRBY)incrementFloat(String key, double delta) 키의 값을 실수만큼 증가 (INCRBYFLOAT)void키에 값을 저장 (SET)setIfAbsent(String key, Object value) 키가 없을 때만 저장 (SETNX)void여러 키에 값을 한번에 저장 (MSET)voidsetWithExpire(String key, Object value, long timeout, TimeUnit unit) 키에 값을 저장하고 만료시간 설정 (SETEX)키의 문자열 길이를 조회 (STRLEN)
-
Constructor Details
-
RedisStringCommand
-
-
Method Details
-
get
키의 값을 조회 (GET) -
getMulti
여러 키의 값을 한번에 조회 (MGET) -
getAndSet
키의 값을 조회하고 새 값으로 교체 (GETSET) -
size
키의 문자열 길이를 조회 (STRLEN) -
set
키에 값을 저장 (SET) -
setWithExpire
키에 값을 저장하고 만료시간 설정 (SETEX) -
setIfAbsent
키가 없을 때만 저장 (SETNX) -
setMulti
여러 키에 값을 한번에 저장 (MSET) -
increment
키의 값을 1 증가 (INCR) -
increment
/** 키의 값을 정수만큼 증가 (INCRBY) -
incrementFloat
키의 값을 실수만큼 증가 (INCRBYFLOAT) -
decrement
키의 값을 1 감소 (DECR) -
decrement
키의 값을 정수만큼 감소 (DECRBY) -
append
키의 값 뒤에 문자열을 추가 (APPEND)
-