|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.cache.AbstractCache
com.caucho.server.cache.Cache
public class Cache
Cached response.
| Constructor Summary | |
|---|---|
Cache()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears the cache. |
FilterChain |
createFilterChain(FilterChain next,
WebApp app)
Creates the filter. |
com.caucho.server.cache.CacheInode |
createInode()
Creates a new writing inode. |
void |
destroy()
Closes the cache. |
CacheItem[] |
getCacheableEntries(int max)
Return most used connections. |
long |
getHitCount()
Returns the hit count. |
static Cache |
getLocalCache()
Returns the local cache. |
int |
getMaxEntrySize()
Sets the maximum entry size for cache values. |
long |
getMemoryBlockHitCount()
Returns the block hit count. |
long |
getMemoryBlockMissCount()
Returns the miss count. |
long |
getMissCount()
Returns the miss count. |
Path |
getPath()
Returns the path from the cache directory. |
CacheItem[] |
getUncacheableEntries(int max)
Return most used connections. |
void |
init()
Initialize the cache. |
boolean |
isEnable()
Return true if enabled. |
boolean |
isEnableRange()
True if range handling is enabled. |
boolean |
isRewriteVaryAsPrivate()
True if Vary headers should be rewritten as Cache-Control: private to work around IE's Vary handling bug. |
void |
setDir(Path path)
Sets the path to the cache directory (backwards compatibility). |
void |
setDiskSize(Bytes size)
Sets the disk size of the cache |
void |
setEnable(boolean isEnabled)
Set true if enabled. |
void |
setEnableRange(boolean enableRange)
True if range handling is enabled. |
void |
setEntries(int entries)
Sets the max number of entries. |
void |
setMaxEntrySize(Bytes size)
Sets the maximum entry size for cache values. |
void |
setMemorySize(Bytes size)
Sets the memory size of the cache |
void |
setPath(Path path)
Sets the path to the cache directory. |
void |
setRewriteVaryAsPrivate(boolean rewrite)
True if Vary headers should be rewritten as Cache-Control: private to work around IE's Vary handling bug. |
void |
setSize(Bytes size)
Sets the size of the the cache (backwards compatibility). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cache()
throws ConfigException
ConfigException| Method Detail |
|---|
public static Cache getLocalCache()
public void setPath(Path path)
setPath in class AbstractCachepublic Path getPath()
getPath in class AbstractCachepublic void setMemorySize(Bytes size)
public void setDiskSize(Bytes size)
setDiskSize in class AbstractCachepublic void setMaxEntrySize(Bytes size)
public int getMaxEntrySize()
getMaxEntrySize in class AbstractCachepublic void setEnable(boolean isEnabled)
setEnable in class AbstractCachepublic boolean isEnable()
isEnable in class AbstractCachepublic void setEntries(int entries)
setEntries in class AbstractCachepublic void setDir(Path path)
setDir in class AbstractCachepublic void setSize(Bytes size)
setSize in class AbstractCachepublic void setEnableRange(boolean enableRange)
public boolean isEnableRange()
public void setRewriteVaryAsPrivate(boolean rewrite)
public boolean isRewriteVaryAsPrivate()
public void init()
throws ConfigException,
java.io.IOException,
java.sql.SQLException
ConfigException
java.io.IOException
java.sql.SQLException
public FilterChain createFilterChain(FilterChain next,
WebApp app)
createFilterChain in class AbstractCachepublic void clear()
clear in class AbstractCachepublic com.caucho.server.cache.CacheInode createInode()
public long getHitCount()
getHitCount in class AbstractCachepublic long getMissCount()
getMissCount in class AbstractCachepublic long getMemoryBlockHitCount()
getMemoryBlockHitCount in class AbstractCachepublic long getMemoryBlockMissCount()
getMemoryBlockMissCount in class AbstractCachepublic CacheItem[] getCacheableEntries(int max)
public CacheItem[] getUncacheableEntries(int max)
public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||