⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dummyalwayrefreshentrypolicy.java

📁 一个不错的cache
💻 JAVA
字号:
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. */package com.opensymphony.oscache.base;/** * This is an dummy implementation of an EntryRefreshPolicy. It is just to * illustrate how to use it. * * $Id: DummyAlwayRefreshEntryPolicy.java,v 1.1 2003/07/19 09:58:48 chris_miller Exp $ * @version        $Revision: 1.1 $ * @author <a href="mailto:fbeauregard@pyxis-tech.com">Francois Beauregard</a> */public final class DummyAlwayRefreshEntryPolicy implements EntryRefreshPolicy {    /**     * Dummy implementation of an entry refresh policy. A real implementation     * whould do some logic to determine if this entry needs to be refreshed.     * It can be calling a bean or checking some files, or even manually manage     * the time expiration.     *     * <p>     * @param entry  The entry for wich to determine if a refresh is needed     * @return True or false     */    public boolean needsRefresh(CacheEntry entry) {        return true;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -