📄 cache.java
字号:
package com.qrsx.exam.cache;
import java.io.Serializable;
import java.util.Properties;
/**
* Defina a common Cache interface
*
* @author galaxy
*
*/
public interface Cache {
/**
* The method of initialize the cache This method may be auto invoked by the
* DAOFactory after create the cache instance.
*
* @param props
* The initial parameters
*/
public void initialize(Properties props);
/**
* The method of put a Object into the cache
*
* @param name
* The key of the object
* @param obj
* The Object that was to be putted into the cache
*/
public void put(String name, Serializable obj);
/**
* Get a Object that was putted into the cache
*
* @param name
* the key of the object
* @return the object that has been putted in the cache
*/
public Object get(String name);
/**
* Remove a Object from the cache
*
* @param name
* the key of the object
*/
public void clear(String name);
/**
* Remove all the Objects from the cache
*
*/
public void clearAll();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -