info.magnolia.module.cache
Class DefaultCacheKey
java.lang.Object
info.magnolia.module.cache.DefaultCacheKey
- All Implemented Interfaces:
- Serializable
public class DefaultCacheKey
- extends Object
- implements 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
DefaultCacheKey
public DefaultCacheKey(String uri,
String serverName,
String locale,
Map<String,String> params)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getUri
public String getUri()
getDomain
public String getDomain()
getLocale
public String getLocale()
getParams
public Map<String,String> getParams()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.