
com.iqarr.redis.cache.RedisCache Maven / Gradle / Ivy
package com.iqarr.redis.cache;
import com.iqarr.cache.Cache;
import com.iqarr.redis.bin.utils.JedisBinUtils;
import com.iqarr.redis.exception.RedisException;
import com.iqarr.redis.string.utils.JedisStrUtils;
/**
* @Package
* com.iqarr.redis.cache
* @ClassName:
* RedisCache
* @since
* V1.0
* @author
* zhangyong
* @version
* V1.0
*/
public class RedisCache implements Cache {
/*
* Title: put
* Title: put
* Title: getTtl
* Title: setTtl
* Title: get
* Title: get
* T get(Object key, Class clazz) {
Object object = get(key);
if(object==null) {
return null;
}
return (T)object;
}
/*
* Title: get
* T get(Object key, long ttl, Class clazz) {
setTtl(key, ttl);
return get(key,clazz);
}
/*
* Title: remove
*
© 2015 - 2025 Weber Informatics LLC | Privacy Policy