Package com.redis.om.spring
Class CustomRedisKeyValueTemplate
java.lang.Object
org.springframework.data.keyvalue.core.KeyValueTemplate
com.redis.om.spring.CustomRedisKeyValueTemplate
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.DisposableBean,org.springframework.context.ApplicationEventPublisherAware,org.springframework.data.keyvalue.core.KeyValueOperations
public class CustomRedisKeyValueTemplate
extends org.springframework.data.keyvalue.core.KeyValueTemplate
-
Constructor Summary
ConstructorsConstructorDescriptionCustomRedisKeyValueTemplate(org.springframework.data.redis.core.RedisKeyValueAdapter adapter, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext) Create newRedisKeyValueTemplate. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.redis.core.RedisKeyValueAdapterObtain the underlying redis specificRedisKeyValueAdapter.org.springframework.data.redis.core.convert.RedisConverterObtain the underlying redis specificEntityConverter.org.springframework.data.redis.core.mapping.RedisMappingContextMethods inherited from class org.springframework.data.keyvalue.core.KeyValueTemplate
count, count, delete, delete, delete, destroy, execute, executeRequired, exists, find, findAll, findAll, findById, findInRange, findInRange, insert, insert, setApplicationEventPublisher, setEventTypesToPublish, setExceptionTranslator, update, update
-
Constructor Details
-
CustomRedisKeyValueTemplate
public CustomRedisKeyValueTemplate(org.springframework.data.redis.core.RedisKeyValueAdapter adapter, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext) Create newRedisKeyValueTemplate.- Parameters:
adapter- must not be null.mappingContext- must not be null.
-
-
Method Details
-
getConverter
public org.springframework.data.redis.core.convert.RedisConverter getConverter()Obtain the underlying redis specificEntityConverter.- Returns:
- the EntityConverter
-
getAdapter
public org.springframework.data.redis.core.RedisKeyValueAdapter getAdapter()Obtain the underlying redis specificRedisKeyValueAdapter.- Returns:
- the KeyValueAdapter
-
getMappingContext
public org.springframework.data.redis.core.mapping.RedisMappingContext getMappingContext()- Specified by:
getMappingContextin interfaceorg.springframework.data.keyvalue.core.KeyValueOperations- Overrides:
getMappingContextin classorg.springframework.data.keyvalue.core.KeyValueTemplate
-