Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

$Cache is a global object that can be used to store and fetch objects in non persisting cache storage.

const $Cache;

Remarks

Cache is cleared when application is restarted or when item is expired.

Cache also provides locking mechanism for shared access to objects. Locking mechanism is based on token value. Token value is generated by $Cache.Lock or $Cache.TryLock method. Token value must be used to release lock with $Cache.ReleaseLock method. If lock is not realed before timeout, lock is automatically released after transaction is completed.