org.xwiki.cache.oscache.internal
Class OSCacheCacheEntry<T>

java.lang.Object
  extended by org.xwiki.cache.oscache.internal.OSCacheCacheEntry<T>
Type Parameters:
T - the class of the data stored in the cache.
All Implemented Interfaces:
CacheEntry<T>

public class OSCacheCacheEntry<T>
extends java.lang.Object
implements CacheEntry<T>

Implements CacheEntry based on OSCache.

Version:
$Id$

Constructor Summary
OSCacheCacheEntry(OSCacheCache<T> cache, com.opensymphony.oscache.base.CacheEntry entry)
           
 
Method Summary
 Cache<T> getCache()
          
 java.lang.String getKey()
          
 T getValue()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSCacheCacheEntry

public OSCacheCacheEntry(OSCacheCache<T> cache,
                         com.opensymphony.oscache.base.CacheEntry entry)
Parameters:
cache - the cache where this entry comes from.
entry - the OSCache cache entry.
Method Detail

getCache

public Cache<T> getCache()

Specified by:
getCache in interface CacheEntry<T>
See Also:
CacheEntry.getCache()

getValue

public T getValue()

Specified by:
getValue in interface CacheEntry<T>
See Also:
CacheEntry.getValue()

getKey

public java.lang.String getKey()

Specified by:
getKey in interface CacheEntry<T>
See Also:
CacheEntry.getKey()


Copyright © 2004-2011 XWiki. All Rights Reserved.