public class RedisCacheFactory extends AbstractCacheFactory<org.springframework.data.redis.connection.RedisConnectionFactory>
Constructor and Description |
---|
RedisCacheFactory() |
Modifier and Type | Method and Description |
---|---|
org.springframework.cache.Cache |
createCache(String cacheName,
String host,
int port) |
protected org.springframework.data.redis.connection.RedisConnectionFactory |
createConnectionClient(String hostName,
int port) |
protected void |
destroyConnectionClient(org.springframework.data.redis.connection.RedisConnectionFactory connectionClient) |
protected org.springframework.data.redis.core.RedisTemplate<?,?> |
getRedisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory) |
boolean |
isSupportingCacheArchitecture(String architecture) |
destroy, getConnectionFactory, getExpiryTime, getExpiryTime, setExpiryTime, setExpiryTimePerCache
public boolean isSupportingCacheArchitecture(String architecture)
public org.springframework.cache.Cache createCache(String cacheName, String host, int port) throws Exception
Exception
protected void destroyConnectionClient(org.springframework.data.redis.connection.RedisConnectionFactory connectionClient) throws Exception
destroyConnectionClient
in class AbstractCacheFactory<org.springframework.data.redis.connection.RedisConnectionFactory>
Exception
protected org.springframework.data.redis.connection.RedisConnectionFactory createConnectionClient(String hostName, int port)
createConnectionClient
in class AbstractCacheFactory<org.springframework.data.redis.connection.RedisConnectionFactory>
protected org.springframework.data.redis.core.RedisTemplate<?,?> getRedisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.