All Downloads are FREE. Search and download functionalities are using the official Maven repository.

weixin.popular.support.ExpireKey Maven / Gradle / Ivy

Go to download

The weixin-popular is a JAVA SDK for weixin. Weixin web url is https://mp.weixin.qq.com.

There is a newer version: 2.8.43
Show newest version
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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy