parseCacheKey()
@blobs/sdk / cache / parseCacheKey
parseCacheKey(
key): {action:string;uri:string; } |null
Defined in: cache/CacheKey.ts:73
Parses a cache key back into its action and URI components.
Inverse of CacheKey. Returns null if the input does not contain
the <ACTION>:<URI> separator.
Parameters
key
string
The cache key to parse.
Returns
{ action: string; uri: string; } | null
The decomposed action/URI, or null if the key is malformed.