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

com.github.houbb.hades.api.context.evict.IEvictStrategyContext Maven / Gradle / Ivy

There is a newer version: 0.0.8
Show newest version
package com.github.houbb.hades.api.context.evict;

import com.github.houbb.hades.api.core.cache.ICache;

/**
 * 移除策略的上下文
 * @author binbin.hou
 * @since 0.0.2
 */
public interface IEvictStrategyContext {

    /**
     * 设置访问的 key
     * TODO: 这里想办法,尽可能的移除设置。
     * @param key 访问 key
     * @return this
     * @since 0.0.2
     */
    IEvictStrategyContext key(final String key);

    /**
     * 获取最新的 key
     * @return key
     * @since 0.0.2
     */
    String key();

    /**
     * 获取缓存信息
     * @return 缓存信息
     * @since 0.0.2
     */
    ICache cache();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy