Interface CacheKeyFactory
-
public interface CacheKeyFactoryCacheKeyFactory is a OSGi Service interface that allows for consumers to generate their own CacheKey's based on their out use-cases. This project will provide a GroupBased CacheKey factory.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CacheKeybuild(String resourcePath, HttpCacheConfig cacheConfig)Build a cache key.CacheKeybuild(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig cacheConfig)Build a cache key.booleandoesKeyMatchConfig(CacheKey key, HttpCacheConfig cacheConfig)Does the Cache Key matches the Http Cache Config.
-
-
-
Method Detail
-
build
CacheKey build(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig cacheConfig) throws HttpCacheKeyCreationException
Build a cache key.- Parameters:
request-cacheConfig-- Returns:
- Throws:
HttpCacheKeyCreationException
-
build
CacheKey build(String resourcePath, HttpCacheConfig cacheConfig) throws HttpCacheKeyCreationException
Build a cache key.- Parameters:
resourcePath-cacheConfig-- Returns:
- Throws:
HttpCacheKeyCreationException
-
doesKeyMatchConfig
boolean doesKeyMatchConfig(CacheKey key, HttpCacheConfig cacheConfig) throws HttpCacheKeyCreationException
Does the Cache Key matches the Http Cache Config.- Parameters:
key-cacheConfig-- Returns:
- True if key and config match.
- Throws:
HttpCacheKeyCreationException
-
-