Add query cache for shadowban

This commit is contained in:
Ajay
2022-02-21 22:46:13 -05:00
parent 90fc02e340
commit 4029b15233
3 changed files with 8 additions and 4 deletions

View File

@@ -16,6 +16,9 @@ export function skipSegmentsHashKey(hashedVideoIDPrefix: VideoIDHash, service: S
return `segments.v4.${service}.${hashedVideoIDPrefix}`;
}
export const shadowHiddenIPKey = (videoID: VideoID, timeSubmitted: number, service: Service): string =>
`segments.${service}.videoID.${videoID}.shadow.${timeSubmitted}`;
export const reputationKey = (userID: UserID): string =>
`reputation.user.${userID}`;