Show/Hide Toolbars

Licence Protector 5

This command starts the cache mode for reading and writing. 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 value is changed in the memory and not on the hard disk. The cache mode can be changed with BeginReadCache, which would save changes in the license file to the hard disk.

 

Use this command, if values from multiple modules have to be changed to speed up the access time significantly.

 

Name

BeginCache                                                                                      

Purpose

Reads and writes all license file values in cache mode

Params

None

Returncode

Returncode

Type Integer

Note

0

The read and write  cache was successfully activated. CacheMode is set to 3

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.BeginCache;

  << start reading values>>

  iRes := lic.EndCache;

See also

GetCacheMode, BeginReadCache, EndCache, RefreshCache, RevertCache, WriteCache

 

Use this command only in a single user installation environment and not for a network license