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

com.github.wz2cool.localqueue.IStore Maven / Gradle / Ivy

There is a newer version: 0.0.6
Show newest version
package com.github.wz2cool.localqueue;

import java.io.Serializable;

/**
 * 存储
 *
 * @param  泛型
 */
public interface IStore {

    /**
     * 放置
     *
     * @param key   键
     * @param value 值
     */
    void put(String key, T value);

    /**
     * 获取
     *
     * @param key 键
     * @return 值
     */
    T get(String key);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy