Skip to main content

storage

存取鍵值對。

Input

To set key value

key: string;
value: any;

To access key

key: string;

回傳

value: string;

範例

CA.storage('string', 'to the moon 🌙')
val = CA.storage('string') # to the moon 🌙

CA.storage('int', 131441)
val = CA.storage('int') # 131441

CA.storage('none', None)
val = CA.storage('none') # None