CloudSymbol

CloudSymbol["name"]

represents a symbol whose value is persistently stored in the cloud.

CloudSymbol[obj]

represents a persistent symbol corresponding to the cloud object obj.

CloudSymbol["uri"]

represents a cloud symbol located at a given URI.

Details

  • Values can be assigned using CloudSymbol[name]=val or CloudSymbol[name]:=val.
  • CloudSymbol[name] evaluates to give the value assigned for CloudSymbol[name].
  • Values of cloud symbols are stored in cloud objects.
  • CloudSymbol["name"] by default references a cloud object with the specified name within the directory $CloudSymbolBase.
  • CloudSymbol["name",base] references a cloud object relative to the specified base.
  • Cloud symbols can be shared between users if appropriate permissions are set on the underlying cloud objects.
  • In CloudSymbol["name"], "name" can be any string.
  • CloudSymbol[URL["loc"]] is also supported.

Examples

open allclose all

Basic Examples  (1)

Assign a value to a cloud symbol:

Retrieve the value:

Scope  (1)

Cloud symbols can be assigned delayed values:

Properties & Relations  (2)

Cloud symbols are stored in cloud objects, so they can be addressed using CloudObject and accessed using other cloud functions:

LocalSymbol provides for local persistent storage:

Possible Issues  (1)

Cloud symbols cannot be assigned subvalues or other special values:

Values of cloud symbols are not stored like other symbols:

Neat Examples  (1)

Use a cloud symbol to persist data between calls to API functions:

Introduced in 2014
 (10.0)
 |
Updated in 2016
 (11.0)