Package com.trendyol.jdempotent.redis
Class RedisIdempotentRepository
java.lang.Object
com.trendyol.jdempotent.redis.RedisIdempotentRepository
- All Implemented Interfaces:
com.trendyol.jdempotent.core.datasource.IdempotentRepository
public class RedisIdempotentRepository extends Object implements com.trendyol.jdempotent.core.datasource.IdempotentRepository
-
Constructor Summary
Constructors Constructor Description RedisIdempotentRepository(org.springframework.data.redis.core.RedisTemplate redisTemplate, RedisConfigProperties redisProperties)
-
Method Summary
Modifier and Type Method Description boolean
contains(com.trendyol.jdempotent.core.model.IdempotencyKey idempotencyKey)
com.trendyol.jdempotent.core.model.IdempotentResponseWrapper
getResponse(com.trendyol.jdempotent.core.model.IdempotencyKey idempotencyKey)
void
remove(com.trendyol.jdempotent.core.model.IdempotencyKey idempotencyKey)
void
setResponse(com.trendyol.jdempotent.core.model.IdempotencyKey idempotencyKey, com.trendyol.jdempotent.core.model.IdempotentRequestWrapper request, com.trendyol.jdempotent.core.model.IdempotentResponseWrapper response)
void
store(com.trendyol.jdempotent.core.model.IdempotencyKey idempotencyKey, com.trendyol.jdempotent.core.model.IdempotentRequestWrapper request)
-
Constructor Details
-
RedisIdempotentRepository
public RedisIdempotentRepository(org.springframework.data.redis.core.RedisTemplate redisTemplate, RedisConfigProperties redisProperties)
-
-
Method Details
-
contains
public boolean contains(com.trendyol.jdempotent.core.model.IdempotencyKey idempotencyKey)- Specified by:
contains
in interfacecom.trendyol.jdempotent.core.datasource.IdempotentRepository
-
getResponse
public com.trendyol.jdempotent.core.model.IdempotentResponseWrapper getResponse(com.trendyol.jdempotent.core.model.IdempotencyKey idempotencyKey)- Specified by:
getResponse
in interfacecom.trendyol.jdempotent.core.datasource.IdempotentRepository
-
store
public void store(com.trendyol.jdempotent.core.model.IdempotencyKey idempotencyKey, com.trendyol.jdempotent.core.model.IdempotentRequestWrapper request)- Specified by:
store
in interfacecom.trendyol.jdempotent.core.datasource.IdempotentRepository
-
remove
public void remove(com.trendyol.jdempotent.core.model.IdempotencyKey idempotencyKey)- Specified by:
remove
in interfacecom.trendyol.jdempotent.core.datasource.IdempotentRepository
-
setResponse
public void setResponse(com.trendyol.jdempotent.core.model.IdempotencyKey idempotencyKey, com.trendyol.jdempotent.core.model.IdempotentRequestWrapper request, com.trendyol.jdempotent.core.model.IdempotentResponseWrapper response)- Specified by:
setResponse
in interfacecom.trendyol.jdempotent.core.datasource.IdempotentRepository
-