Veritran Docs

VT_CACHE

The VT_CACHE function allows you to perform different actions involving cache on a mobile device. Click Add to add a new cache call. Then, select an option from the drop-down menu in the Method field and complete the fields applicable for that method. You can add as many cache calls as desired.

There are six methods available for VT_CACHE functions. Learn more about each method in the sections below.

Tip

In VT_CACHE functions, you don’t have to complete the Output variable.

clearAll

The clearAll method allows you to delete all the values saved in the cache, both registers and arrays. No parameters need to be configured.

getArray

The getArray method allows you to obtain the value of an array saved in the cache of a mobile device.

Id

Complete with the id of the item to be obtained from the cache.

arrayIdDest

Array where the item or array obtained from the cache will be saved.

getRegister

The getRegister method allows you to obtain the value of a register saved in the cache of a mobile device.

Id

Complete with the id of the item in the cache.

RegisterIdDest

Register where the item obtained from the cache will be saved.

insertArray

The insertArray method allows you to insert an array in the cache of a mobile device.

Id

Complete with the id of the item in the cache.

arrayId

Complete with the id of the array to be saved in the cache.

TTL

Time To Live. Indicate for how long the item lives in the cache. You can complete with one of the following options:

SESSION: Enter the word SESSION so that the value lives in the cache for the entire session of the app.

“” or “0”: Enter “” or “0” so that the value doesn’t time out.

Numeric value: complete with the desired time in seconds.

insertRegister

The insertRegister method allows to you insert a register in the cache of a mobile device.

Id

Complete with the id of the item in the cache.

registerId

Complete with the id of the register to be saved in the cache.

TTL

Time To Live. Indicate for how long the item lives in the cache. You can complete with one of the following options:

SESSION: Enter the word SESSION so that the value lives in the cache for the entire session of the app.

“” or “0”: Enter “” or “0” so that the value doesn’t time out.

Numeric value: complete with the desired time in seconds.

removeRegister

The removeRegister method allows to to delete the value of a register previously saved in the cache of a mobile device.

The only parameter to be configured is the id. Complete with the id of the item in the cache to be removed.

Click Add to add new cache calls. Click Delete to delete a cache call.