Function: parseCacheKey()
parseCacheKey(
key
:string
): {identifier
:string
;operation?
:string
;prefix
:string
; }
Defined in: shared/utils/cacheKeys.ts:361
Parse a standardized cache key into its components.
Parametersโ
keyโ
string
Standardized cache key to parse
Returnsโ
{ identifier
: string
; operation?
: string
; prefix
: string
; }
Object containing the key components
identifierโ
identifier:
string
operation?โ
optional
operation:string
prefixโ
prefix:
string
Exampleโ
const components = parseCacheKey("site:loading:site-123");
// Returns: { identifier: "site-123", operation: "loading", prefix: "site" }