KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > module > cacheInterface


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.module;
11
12 import org.mmbase.util.LRUHashtable;
13
14 /**
15  * The interface class for the cache module.
16  *
17  * @application cache [utility,interface]
18  * @javadoc
19  * @rename CacheInterface
20  * @move org.mmbase.cache
21  * @author $Author: pierre $
22  * @version $Id: cacheInterface.java,v 1.9 2003/03/10 11:50:13 pierre Exp $
23  */

24 public interface cacheInterface {
25     /**
26      * @javadoc
27      */

28     public void init();
29     /**
30      * @deprecated-now direct access to lines seems undesirable and is implementation-dependent
31      */

32     public LRUHashtable lines();
33     /**
34      * @javadoc
35      */

36     public boolean clear();
37     /**
38      * @javadoc
39      */

40     public cacheline get(Object JavaDoc key);
41     /**
42      * @javadoc
43      */

44     public cacheline put(Object JavaDoc key,Object JavaDoc value);
45     /**
46      * @javadoc
47      */

48     public cacheline remove(Object JavaDoc key);
49 }
50
Popular Tags