weixin.popular.support.ExpireKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weixin-popular Show documentation
Show all versions of weixin-popular Show documentation
The weixin-popular is a JAVA SDK for weixin. Weixin web url is https://mp.weixin.qq.com.
package weixin.popular.support;
/**
* key 过期
* @author LiYi
*
*/
public interface ExpireKey {
//12 s
public static final Integer DEFAULT_EXPIRE = 12;
/**
* 添加key
* @param key key
* @param expire 有效时间(秒)
* @return boolean
*/
public boolean add(String key,int expire);
/**
* 添加key
* @param key key
* @return boolean
*/
public boolean add(String key);
/**
* 判断key是否存在
* @param key key
* @return boolean
*/
public boolean exists(String key);
}