Show/Hide Toolbars

Licence Protector 5

 

This command retrieves the mode of the cache. The cache mode has to be activated first using BeginReadCache or BeginCache

 

Name

GetCacheMode                                                                                      

Purpose

This command retrieves the mode of the cache

Params

None

Returncode

Returncode

Type Integert

Note

0

Cache is turned off

1

Cache is in Read mode - opened with BeginReadCache

2

Cache is in Read and Write mode - opened with BeginCache

Other return codes

Cache mode could not be retrieved, see list of return codes

Usage

Find out if the cache is turned on or not

Sample

 

   iRes := lic.BeginCache;

  << start reading values>>

  iRes := lic.GetCacheMode;

  << start reading values>>

  iRes := lic.EndCache;

 

See also

EndCache, BeginReadCache, BeginCache, RefreshCache, RevertCache, WriteCache