//# 0 errors, 18 messages
//#
/*
    //#Cache.java:1:1: class: org.apache.roller.weblogger.util.cache.Cache
    //#Cache.java:1:1: method: org.apache.roller.weblogger.util.cache.Cache.org.apache.roller.weblogger.util.cache.Cache__static_init
 * Licensed to the Apache Software Foundation (ASF) under one or more
 *  contributor license agreements.  The ASF licenses this file to You
 * under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.  For additional information regarding
 * copyright in this work, please see the NOTICE file in the top level
 * directory of this distribution.
 */

package org.apache.roller.weblogger.util.cache;

import java.util.Map;
import java.util.Set;


/**
 * Base interface representing a cache in Roller.
 */
public interface Cache {
    
    /**
     * a unique identifier for the cache.
     */
    public String getId();
    
    
    /**
     * put an item in the cache.
     */
    public void put(String key, Object value);
    
    
    /**
     * get an item from the cache.
     */
    public Object get(String key);
    
    
    /**
     * remove an item from the cache.
     */
    public void remove(String key);
    
    
    /**
     * clear the entire cache.
     */
    public void clear();
    
    
    /**
     * get cache stats.
     */
    public Map getStats();
    
}
    //#output(org.apache.roller.weblogger.util.cache.Cache__static_init): __Descendant_Table[org/apache/roller/weblogger/util/cache/Cache]
    //#output(org.apache.roller.weblogger.util.cache.Cache__static_init): __Dispatch_Table.clear()V
    //#output(org.apache.roller.weblogger.util.cache.Cache__static_init): __Dispatch_Table.get(Ljava/lang/String;)Ljava/lang/Object;
    //#output(org.apache.roller.weblogger.util.cache.Cache__static_init): __Dispatch_Table.getId()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.util.cache.Cache__static_init): __Dispatch_Table.getStats()Ljava/util/Map;
    //#output(org.apache.roller.weblogger.util.cache.Cache__static_init): __Dispatch_Table.put(Ljava/lang/String;Ljava/lang/Object;)V
    //#output(org.apache.roller.weblogger.util.cache.Cache__static_init): __Dispatch_Table.remove(Ljava/lang/String;)V
    //#post(org.apache.roller.weblogger.util.cache.Cache__static_init): __Descendant_Table[org/apache/roller/weblogger/util/cache/Cache] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.util.cache.Cache__static_init): __Dispatch_Table.clear()V == &clear
    //#post(org.apache.roller.weblogger.util.cache.Cache__static_init): __Dispatch_Table.get(Ljava/lang/String;)Ljava/lang/Object; == &get
    //#post(org.apache.roller.weblogger.util.cache.Cache__static_init): __Dispatch_Table.getId()Ljava/lang/String; == &getId
    //#post(org.apache.roller.weblogger.util.cache.Cache__static_init): __Dispatch_Table.getStats()Ljava/util/Map; == &getStats
    //#post(org.apache.roller.weblogger.util.cache.Cache__static_init): __Dispatch_Table.put(Ljava/lang/String;Ljava/lang/Object;)V == &put
    //#post(org.apache.roller.weblogger.util.cache.Cache__static_init): __Dispatch_Table.remove(Ljava/lang/String;)V == &remove
    //#Cache.java:: end of method: org.apache.roller.weblogger.util.cache.Cache.org.apache.roller.weblogger.util.cache.Cache__static_init
    //#Cache.java:: end of class: org.apache.roller.weblogger.util.cache.Cache
