Function: isStandardizedCacheKey()
isStandardizedCacheKey(
key
:string
):key is string
Defined in: shared/utils/cacheKeys.ts:323
Utility to validate if a string follows the standardized cache key pattern.
Parametersโ
keyโ
string
Cache key to validate
Returnsโ
key is string
True if the key follows the standardized pattern
Exampleโ
const isValid = isStandardizedCacheKey("site:site-123");
// Returns: true
const isInvalid = isStandardizedCacheKey("random-key");
// Returns: false