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

org.dromara.sms4j.api.dao.SmsDao Maven / Gradle / Ivy

The newest version!
package org.dromara.sms4j.api.dao;

/**
 * DAO 接口
 *
 * @author Wind
 * @author Charles7c
 * @since 2023/8/5 20:03
 */
public interface SmsDao {

    /**
     * 存储
     *
     * @param key       键
     * @param value     值
     * @param cacheTime 缓存时间(单位:秒)
     */
    void set(String key, Object value, long cacheTime);

    /**
     * 存储
     *
     * @param key   键
     * @param value 值
     */
    void set(String key, Object value);

    /**
     * 读取
     *
     * @param key 键
     * @return 值
     */
    Object get(String key);

    /**
     *  remove
     * 

根据key移除缓存 * @param key 缓存键 * @return 被删除的value * @author :Wind */ Object remove(String key); /** * 清空 */ void clean(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy