Function: isStandardizedCacheKey()
function isStandardizedCacheKey(key: string): key is string;
Defined in: shared/utils/cacheKeys.ts:330
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