Cache

public interface Cache

Defines methods required for storing rendered document and document resources \u0441ache.

Methods

Method Description
set(String key, Object value) Inserts a cache entry into the cache.
get(String key) Gets the entry associated with this key if present and null otherwise.
getKeys(String filter) Returns all keys matching filter.

set(String key, Object value)

public abstract 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.

get(String key)

public abstract T <T>get(String key)

Gets the entry associated with this key if present and null otherwise.

Parameters:

Parameter Type Description
key java.lang.String A key identifying the requested entry.

Returns: T - Object if the key was found and null otherwise.

getKeys(String filter)

public abstract List<String> getKeys(String filter)

Returns all keys matching filter.

Parameters:

Parameter Type Description
filter java.lang.String The filter to use.

Returns: java.util.List<java.lang.String> - Keys matching the filter.