FileCache
Leave feedback
On this page
Inheritance: java.lang.Object
All Implemented Interfaces: com.groupdocs.annotation.cache.ICache
public class FileCache implements ICache
Represents a local on-disk cache.
| Constructor | Description |
|---|---|
| FileCache() | Initializes new instance of FileCache class. |
| FileCache(String path) | Initializes new instance of FileCache class. |
| Method | Description |
|---|---|
| getKeys(String filter) | Returns all file names that contains filter in filename. |
| set(String key, Object value) | Serializes data to the local disk. |
public FileCache()
Initializes new instance of FileCache class.
public FileCache(String path)
Initializes new instance of FileCache class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| path | java.lang.String | Path where cache data will be saved |
public final System.Collections.Generic.IGenericEnumerable<String> getKeys(String filter)
Returns all file names that contains filter in filename.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| filter | java.lang.String | The filter to use. |
Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerable<java.lang.String> - File names that contains filter in filename.
public final void set(String key, Object value)
Serializes data to the local disk.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | java.lang.String | An unique identifier for the cache entry. |
| value | java.lang.Object | The object to serialize. |
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.