Back to index...

NameTypeDeprecatedSecureDescription
Command.Storage.ClearfunctionRemove an element from a storage segment. If accessing guild storage, you will need write access ...
Command.Storage.GetfunctionGets a specific element from a target's storage. The result will be sent to Event.Storage.Get. Th...
Command.Storage.ListfunctionLists the visible elements in a target's storage. The results will be sent to Event.Storage.List....
Command.Storage.SetfunctionSets a storage element. If accessing guild storage, you will need the Write to Guild Addon Stora...
Event.Storage.GetSignals receiving storage data from a target.
Event.Storage.ListSignals receiving a list of storage elements from a target.
Inspect.Storage.UsedfunctionReturns the storage space currently used for a given segment.
Utility.Storage.ChecksumfunctionCalculates the storage checksum of a string.
Utility.Storage.LimitsfunctionReturns information on the storage bandwidth limits.
Utility.Storage.SizefunctionReturns the size of a stored element, as used for storage quota and bandwidth control.

Command.Storage.Clear

Remove an element from a storage segment. If accessing guild storage, you will need write access to that element, as well as the Delete from Guild Addon Storage permission. This command is throttled by the "storage" throttle type.

Usage:

Command.Storage.Clear(segment, identifier, callback)
ParameterTypeDatatypeDescription
callbackparametercallbackfunctionA standard command callback, used for detecting success or failure. See the "callbackfunction" documentation for more details.
identifierparameterstringThe identifier of the storage bucket. Must be at least three characters long.
segmentparameterstringThe storage segment to access. "player" will access the target's per-player storage, "guild" will access the target's guild's per-guild storage. If this function has no target parameter, then the player will be targeted.

Command.Storage.Get

Gets a specific element from a target's storage. The result will be sent to Event.Storage.Get. This command is throttled by the "storage" throttle type on both the client and server.

Usage:

Command.Storage.Get(target, segment, identifier, callback)
ParameterTypeDatatypeDescription
callbackparametercallbackfunctionA standard command callback, used for detecting success or failure. See the "callbackfunction" documentation for more details.
identifierparameterstringThe identifier of the storage bucket. Must be at least three characters long.
segmentparameterstringThe storage segment to access. "player" will access the target's per-player storage, "guild" will access the target's guild's per-guild storage. If this function has no target parameter, then the player will be targeted.
targetparameterstringThe name of the player whose storage should be accessed. Will work only on players in your guild, players in your group, or players that the addon unit system is aware of.

Command.Storage.List

Lists the visible elements in a target's storage. The results will be sent to Event.Storage.List. This command is throttled by the "storage" throttle type.

Usage:

Command.Storage.List(target, segment, callback)
ParameterTypeDatatypeDescription
callbackparametercallbackfunctionA standard command callback, used for detecting success or failure. See the "callbackfunction" documentation for more details.
segmentparameterstringThe storage segment to access. "player" will access the target's per-player storage, "guild" will access the target's guild's per-guild storage. If this function has no target parameter, then the player will be targeted.
targetparameterstringThe name of the player whose storage should be accessed. Will work only on players in your guild, players in your group, or players that the addon unit system is aware of.

Command.Storage.Set

Sets a storage element. If accessing guild storage, you will need the Write to Guild Addon Storage permission. If replacing an existing element, you will also need write access to that element as well as the Delete from Guild Addon Storage permission. You cannot create an element that you cannot read, nor can you create an element with Officer write permissions if you are not an Officer. This command is throttled by the "storage" throttle type.

Usage:

Command.Storage.Set(segment, identifier, read, write, data, callback)
ParameterTypeDatatypeDescription
callbackparametercallbackfunctionA standard command callback, used for detecting success or failure. See the "callbackfunction" documentation for more details.
dataparameterstringThe data to store. This parameter is binary-safe.
identifierparameterstringThe identifier of the storage bucket. Must be at least three characters long.
readparameterstringRead permissions for this element. If the segment is "player", this may be "public", "guild", or "private", where public is readable by anyone, guild is readable by your guildmembers only, and private is readable by the player only. If the segment is "guild", this may be "public", "guild", or "officer", where public is readable by anyone, guild is readable by guildmembers with the Listen permission, and officer is readable by guildmembers with the Officer Chat permission.
segmentparameterstringThe storage segment to access. "player" will access the target's per-player storage, "guild" will access the target's guild's per-guild storage. If this function has no target parameter, then the player will be targeted.
writeparameterstringWrite permissions for this element. If the segment is "player", this must be "private", as only you may modify your own storage. If the segment is "guild", this may be "guild" or "officer", where guild is changeable by guildmembers with the Delete from Guild Addon Storage permission, and officer is changeable by guildmembers with the Delete from Guild Addon Storage permission and the Officer Chat permission. The write permission must be "officer" if the read permission is "officer".

Event.Storage.Get

Signals receiving storage data from a target.

Usage:

Event.Storage.Get(target, segment, identifier, read, write, data)
ParameterTypeDatatypeDescription
dataparameter<nope>The data contained in the requested element.
identifierparameter<nope>The identifier that was inspected.
readparameter<nope>The read permissions of this element. See Command.Storage.Set() for details.
segmentparameter<nope>The segment that has been inspected, either "player" or "guild".
targetparametervariantThe name of the player that has been inspected.
writeparameter<nope>The write permissions of this element. See Command.Storage.Set() for details.

Event.Storage.List

Signals receiving a list of storage elements from a target.

Usage:

Event.Storage.List(target, segment, identifiers)
ParameterTypeDatatypeDescription
identifiersparameter<nope>A list of identifiers available to you, in {identifier = checksum} format.
segmentparameter<nope>The segment that has been inspected, either "player" or "guild".
targetparametervariantThe name of the player that has been inspected.

Inspect.Storage.Used

Returns the storage space currently used for a given segment.

Usage:

current, maximum = Inspect.Storage.Used(segment)
ParameterTypeDatatypeDescription
segmentparameterstringThe storage segment to access. "player" will access the target's per-player storage, "guild" will access the target's guild's per-guild storage. If this function has no target parameter, then the player will be targeted.
currentresultnumberCurrent storage space used.
maximumresultnumberMaximum storage space available.

Utility.Storage.Checksum

Calculates the storage checksum of a string.

Usage:

checksum = Utility.Storage.Checksum(data)
ParameterTypeDatatypeDescription
dataparameterstringThe data to store. This parameter is binary-safe.
checksumresultstringAn opaque string representing the storage checksum.

Utility.Storage.Limits

Returns information on the storage bandwidth limits.

Usage:

data = Utility.Storage.Limits()
ParameterTypeDatatypeDescription
dataresulttableThe requested data.
members
burst The amount of data that can be sent or received without being subject to throttling.
sustained Amount of data that can be transferred per second without dropping messages.

Utility.Storage.Size

Returns the size of a stored element, as used for storage quota and bandwidth control.

Usage:

size = Utility.Storage.Size(identifier, data)
ParameterTypeDatatypeDescription
dataparameterstringThe data to store. This parameter is binary-safe.
identifierparameterstringThe identifier of the storage bucket. Must be at least three characters long.
sizeresultnumberThe calculated size of the storage bucket.

Back to index...