FileCache
Leave feedback
On this page
Inheritance: java.lang.Object
All Implemented Interfaces: com.groupdocs.conversion.caching.ICache
public final class FileCache implements ICache
File caching behaviour. Means that cache is stored on the file system Learn more More about caching and optimizing conversion process performance: Caching conversion results
| Constructor | Description |
|---|---|
| FileCache(String cachePath) | Creates new instance of FileCache class |
| Method | Description |
|---|---|
| set(String key, Object value) | Inserts a cache entry into the cache. |
| tryGetValue(String key) | Gets the entry associated with this key if present. |
| getKeys(String filter) | Returns all keys matching filter. |
public FileCache(String cachePath)
Creates new instance of FileCache class
Parameters:
| Parameter | Type | Description |
|---|---|---|
| cachePath | java.lang.String | Relative or absolute path where document cache will be stored |
public void set(String key, Object value)
Inserts a cache entry into the cache.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | java.lang.String | A unique identifier for the cache entry. |
| value | java.lang.Object | The object to insert. |
public Object tryGetValue(String key)
Gets the entry associated with this key if present.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | java.lang.String | A key identifying the requested entry. |
Returns: java.lang.Object - Object if the key was found or else null.
public Iterable<String> getKeys(String filter)
Returns all keys matching filter.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| filter | java.lang.String | The filter to use. |
Returns: java.lang.Iterable<java.lang.String> - Keys matching the filter.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.