diff --git a/src/utils/redisKeys.ts b/src/utils/redisKeys.ts index 0be7bd6..0b96d8c 100644 --- a/src/utils/redisKeys.ts +++ b/src/utils/redisKeys.ts @@ -69,5 +69,5 @@ export function userFeatureKey (userID: HashedUserID, feature: Feature): string } export function shouldClientCacheKey(key: RedisCommandArgument): boolean { - return (key as string).startsWith("segments.") || (key as string).startsWith("reputation."); + return (key as string).match(/^(?:segments\.|reputation\.|branding\.|labels\.)/) !== null; } \ No newline at end of file