info.magnolia.module.cache
Class DefaultCacheKey
java.lang.Object
info.magnolia.module.cache.DefaultCacheKey
- All Implemented Interfaces:
- java.io.Serializable
public class DefaultCacheKey
- extends java.lang.Object
- implements java.io.Serializable
Default cache key implementation. Key is based on the URI, server name, parameters and request headers. Since the server name is likely to change from server to server, copying cached items around will most likely not help to avoid generating cache entries.
- Version:
- $Id:$
- Author:
- had
- See Also:
- Serialized Form
Constructor Summary |
DefaultCacheKey(java.lang.String uri,
java.lang.String serverName,
java.lang.String locale,
java.util.Map<java.lang.String,java.lang.String> params)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DefaultCacheKey
public DefaultCacheKey(java.lang.String uri,
java.lang.String serverName,
java.lang.String locale,
java.util.Map<java.lang.String,java.lang.String> params)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
getUri
public java.lang.String getUri()
getDomain
public java.lang.String getDomain()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.