This command rereads the license file from the hard disk into the cache. The cache mode has to be activated first using BeginReadCache or BeginCache. If write commands have been cached, RefreshCache saves the updates to the disk before the license file is loaded into the memory.

 

 

Name

RefreshCache                                                                                      

Purpose

Update the cache and save values to the hard disk

Params

None

Returncode

Returncode

Type Integer

Note

0

The  cache was successfully updated with the latest license file values

Other return codes

Cache activation failed, see list of return codes

Usage

Update the cache

Sample

 

  iRes := lic.BeginCache;

  << start reading values>>

  iRes := lic.RefreshCache;

  << start reading values>>

  iRes := lic.EndCache;

See also

GetCacheMode, BeginReadCache, BeginCache, EndCache, RevertCache, WriteCache