public final class ContentFileCache extends Object
Constructor and Description |
---|
ContentFileCache(int maxSize) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear whole cache
|
ContentElement |
get(String path,
File file)
Get content.
|
ContentElement |
get(String path,
File file,
org.apache.sling.jcr.contentparser.ContentType contentType)
Get content.
|
void |
remove(String path)
Remove content from cache.
|
int |
size() |
public ContentFileCache(int maxSize)
maxSize
- Cache size. 0 = caching disabled.public ContentElement get(String path, File file)
path
- Path (used as cache key).file
- Filepublic ContentElement get(String path, File file, org.apache.sling.jcr.contentparser.ContentType contentType)
path
- Path (used as cache key).file
- FilecontentType
- Content type - if null type is auto-detectedpublic void remove(String path)
path
- Path (used as cache key)public void clear()
public int size()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.