FileCache

Inheritance: java.lang.Object

All Implemented Interfaces: com.groupdocs.annotation.cache.ICache

public class FileCache implements ICache

Represents a local on-disk cache.

Constructors

Constructor Description
FileCache() Initializes new instance of FileCache class.
FileCache(String path) Initializes new instance of FileCache class.

Methods

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.

FileCache()

public FileCache()

Initializes new instance of FileCache class.

FileCache(String path)

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

getKeys(String filter)

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.

set(String key, Object value)

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.