XLL+ Class Library (7.0)

CXlOperCache Methods

The methods of the CXlOperCache class are listed here.

Construction

public method CXlOperCache Constructs a CXlOperCache object

Operations

public method Add Adds a result to the cache, with a key composed of all the arguments to the function
public method Clear Clears the entire contents of the cache
public method Find Searches the cache for the result of a previous calculation
public method Set Sets a result in the cache, with a key composed of all the arguments to the function

Cache size methods

public method GetMaxSize Returns the number of records in the cache
public method ReduceSize Reduces cache size by removing records from the cache that have not been recently used
public method SetMaxSize Returns the number of records in the cache

Persistence

public method static method GetUserCacheFilePath Get the default location for the cache file
public method Restore Restore the contents of the cache from a file
public method Save Save the contents of the cache to a file

Requirements

Header: xlserialize.h

See Also

CXlOperCache Class | xlserialize.h | CXlCacheBinding class<C> | CXlInputKey class | CXlSerialData class | Cache sample | Function property: CacheResults