Show/Hide Toolbars

Licence Protector 5

 

This command starts the cache mode for reading. The license file is loaded into the computer memory and every DLL command, reading a license file value, reads the value from the memory. If a DLL command modifies a license file value, the complete license file is updated on the hard disk. The cache mode can be changed with BeginCache.

 

Use this command, if values from multiple modules are retrieved to speed up the access time significantly.

 

Name

BeginReadCache                                                                                        

Purpose

Reads all license file values in cache mode

Params

None

Returncode

Returncode

Type Integer

Note

0

The read cache was successfully activated. CacheMode is set to 1

Other return codes

Cache activation failed, see list of return codes

Usage

Speed up reading of multiple values in a license file

Sample

 

  iRes := lic.BeginReadCache;

  << start reading values>>

  iRes := lic.EndCache;

See also

GetCacheMode, BeginCache, EndCache, RefreshCache, RevertCache, WriteCache