Framework
SafeKeyEncoder
Class: SafeKeyEncoder
SafeKeyEncoder class for stateful encoding operations.
Provides encoding/decoding with version tracking for future format migrations.
Constructors
new SafeKeyEncoder()
new SafeKeyEncoder(): SafeKeyEncoderReturns
Properties
Methods
decode()
decode(storageKey): EncodedKeyDataDecode a storage key.
Parameters
| Parameter | Type |
|---|---|
storageKey | string |
Returns
decodeValue()
decodeValue(encoded): unknownDecode a unique field value.
Parameters
| Parameter | Type |
|---|---|
encoded | string |
Returns
unknown
encode()
encode(namespace, key): stringEncode a (namespace, key) pair.
Parameters
| Parameter | Type |
|---|---|
namespace | string[] |
key | string |
Returns
string
encodeValue()
encodeValue(value): stringEncode a unique field value.
Parameters
| Parameter | Type |
|---|---|
value | unknown |
Returns
string
isEncoded()
isEncoded(key): booleanCheck if a key is encoded.
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
boolean
