
com.jarvis.cache.redis.AbstractRedisCacheManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autoload-cache-manager-redis Show documentation
Show all versions of autoload-cache-manager-redis Show documentation
The cache manager module of autoload-cache project
The newest version!
package com.jarvis.cache.redis;
import com.jarvis.cache.ICacheManager;
import com.jarvis.cache.MSetParam;
import com.jarvis.cache.exception.CacheCenterConnectionException;
import com.jarvis.cache.serializer.ISerializer;
import com.jarvis.cache.serializer.StringSerializer;
import com.jarvis.cache.to.CacheKeyTO;
import com.jarvis.cache.to.CacheWrapper;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.*;
/**
*
*/
@Getter
@Slf4j
public abstract class AbstractRedisCacheManager implements ICacheManager {
public static final StringSerializer KEY_SERIALIZER = new StringSerializer();
/**
* Hash的缓存时长:等于0时永久缓存;大于0时,主要是为了防止一些已经不用的缓存占用内存;hashExpire小于0时,则使用@Cache中设置的expire值(默认值为-1)。
*/
protected int hashExpire = -1;
protected final ISerializer
© 2015 - 2025 Weber Informatics LLC | Privacy Policy