Class AbstractCacheKey
- java.lang.Object
-
- org.ametys.plugins.core.impl.cache.AbstractCacheKey
-
- Direct Known Subclasses:
AbstractProfileStorageBasedAccessController.Cache1Key
,AbstractProfileStorageBasedAccessController.Cache2Key
,BlogCacheManager.BlogPageElementKey
,ContentTypesHelper.CacheKey
,I18nUtils.I18nKey
,PageDAO.PageTagCacheKey
,PageElementCache.PageElementKey
,ProjectManager.ModuleCacheKey
,ProjectManager.RequestModuleCacheKey
,ProjectManager.RequestProjectCacheKey
,RightManager.Cache1Key
,RightManager.Cache2Key
,SiteManager.RequestSiteCacheKey
,SitemapInputData.SitemapKey
,SitemapSaxer.PageElementKey
,StaticTemplatesAssignmentHandler.TemplateKey
,UserDirectoryHelper.UserElementKey
,UserDirectoryPageResolver.UserPageElementKey
public abstract class AbstractCacheKey extends Object
AbstractCacheKey Class used to create cache keys as tuples
-
-
Field Summary
Fields Modifier and Type Field Description private List<? super Object>
_fields
private boolean
_isKeyOnlyForInvalidate
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCacheKey(Object... fields)
AbstractCacheKey
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<? super Object>
getFields()
get list of fieldsint
hashCode()
boolean
isKeyOnlyForInvalidate()
true if one of fields is nullString
toString()
-
-
-
Field Detail
-
_isKeyOnlyForInvalidate
private boolean _isKeyOnlyForInvalidate
-
-
Constructor Detail
-
AbstractCacheKey
protected AbstractCacheKey(Object... fields)
AbstractCacheKey- Parameters:
fields
- list of fields in the key
-
-
Method Detail
-
isKeyOnlyForInvalidate
public boolean isKeyOnlyForInvalidate()
true if one of fields is null- Returns:
- true if the key is used for mass invalidation
-
-