org.compass.core.cache.first
Class DefaultFirstLevelCache
java.lang.Object
org.compass.core.cache.first.DefaultFirstLevelCache
- All Implemented Interfaces:
- FirstLevelCache
public class DefaultFirstLevelCache
- extends Object
- implements FirstLevelCache
A default implementation of first level cache.
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultFirstLevelCache
public DefaultFirstLevelCache()
get
public Object get(ResourceKey key)
- Specified by:
get in interface FirstLevelCache
getResource
public Resource getResource(ResourceKey key)
- Specified by:
getResource in interface FirstLevelCache
set
public void set(ResourceKey key,
Object obj)
- Specified by:
set in interface FirstLevelCache
setResource
public void setResource(ResourceKey key,
Resource resource)
- Specified by:
setResource in interface FirstLevelCache
evict
public void evict(ResourceKey key)
- Specified by:
evict in interface FirstLevelCache
evictAll
public void evictAll()
- Specified by:
evictAll in interface FirstLevelCache
Copyright (c) 2004-2008 The Compass Project.