TYL PROGRAMMING LANGUAGE
▶ STORAGE MODULE REFERENCE
storage.clear
Clears the storage
storage.exists key → result
Checks if key exists in storage keys. If exists returns TRUE, otherwise FALSE.
key
string variable
storage.get key → var
If key exists in storage keys, returns the value, otherwise returns NULL.
key
string variable
var
Tyl variable
storage.save
Saves the storage.
storage.set key var → var
If key exists in storage keys, sets the value to var.
key
string variable
var
Tyl variable
storage.unset key
If key exists in storage keys, removes the entry of that key from storage.
key
string variable