-
- RedisTemplate是一种帮助类,可以简化Redis的访问数据的代码。在Redis数据仓库中,自动执行在给定对象与二进制数据之间的序列化和反序列化。默认情况下使用java的序列化方法(
JdkSerializationRedisSerializer)来序列化对象。对于字符串的加强操作,则使用
StringRedisTemplate类。这是Redis中的核心类。
- RedisTemplate是一种帮助类,可以简化Redis的访问数据的代码。在Redis数据仓库中,自动执行在给定对象与二进制数据之间的序列化和反序列化。默认情况下使用java的序列化方法(
- 继承关系:
- java.lang.Object
-
- org.springframework.data.redis.core.RedisAccessor
-
- org.springframework.data.redis.core.RedisTemplate<K,V>
Type Parameters:
K
- the Redis key type against which the template works (usually a String)
V
- the Redis value type against which the template works