1/*2 * Copyright 2000-2001,2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */1617packageorg.apache.jetspeed.services.portletcache;
1819import org.apache.turbine.services.Service;
2021/***22 * <P>This service provides caching facilities for objects within the Jetspeed23 * application</p>24 * 25 * <strong>This interface is designed for backward compability with the26 * previous memory cache interfaces. It may be deprecated once the caching27 * API is refactored</strong>28 *29 * @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>30 * @author <a href="mailto:raphael@apache.org">Raphaël Luta</a>31 * @version $Id: PortletCacheService.java,v 1.4 2004/02/23 03:34:54 jford Exp $32 */33publicinterfacePortletCacheServiceextends Service {
3435public String SERVICE_NAME = "PortletCache";
3637/***38 * Add a Cacheable object to the cache.39 *40 * @param item the object to store in the Cache41 */42publicvoid addCacheable( Cacheable item );
4344/***45 * Removes a Cacheable object from the cache based on its handle46 *47 * @param handle the identifier of the object to remove48 */49publicvoid removeCacheable( String handle );
5051/***52 * Retrieves a Cacheable object from the cache.53 *54 * @param handle the identifier of the object we wish to retrieve55 * @return the cacehd object or null if not found56 */57publicCacheable getCacheable( String handle );
5859 }
60