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

    Constructors
    Constructor
    Description
    CustomRedisKeyValueTemplate(org.springframework.data.redis.core.RedisKeyValueAdapter adapter, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext)
    Create new RedisKeyValueTemplate.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.redis.core.RedisKeyValueAdapter
    Obtain the underlying redis specific RedisKeyValueAdapter.
    org.springframework.data.redis.core.convert.RedisConverter
    Obtain the underlying redis specific EntityConverter.
    org.springframework.data.redis.core.mapping.RedisMappingContext
     

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CustomRedisKeyValueTemplate

      public CustomRedisKeyValueTemplate(org.springframework.data.redis.core.RedisKeyValueAdapter adapter, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext)
      Create new RedisKeyValueTemplate.
      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 specific EntityConverter.
      Returns:
      the EntityConverter
    • getAdapter

      public org.springframework.data.redis.core.RedisKeyValueAdapter getAdapter()
      Obtain the underlying redis specific RedisKeyValueAdapter.
      Returns:
      the KeyValueAdapter
    • getMappingContext

      public org.springframework.data.redis.core.mapping.RedisMappingContext getMappingContext()
      Specified by:
      getMappingContext in interface org.springframework.data.keyvalue.core.KeyValueOperations
      Overrides:
      getMappingContext in class org.springframework.data.keyvalue.core.KeyValueTemplate