@beincom/constants
Version:
Beincom shared constant definitions
30 lines (29 loc) • 1.12 kB
TypeScript
export declare class SharedUserCacheKey {
private static PREFIX;
private static hashTag;
static usernameById(userId: string): string;
static profileByUserName(username: string): string;
static allProfilesOfUser(userId: string): string;
static userSettingsOfUser(userId: string): string;
static userOwnershipNftLinked(userId: string): string;
/**
* Data type: Hash
*
* Key: `{env}:user:medal_statistics`
*
* Hash fields: `total_eligible_medals`, `conversion_rate`, `updated_at` ...
*/
/**
* @deprecated
*/
static medalStatisticsKey(): string;
static airdropInfoKey(): string;
static getTokenValidationHashKey(username: string): string;
static getUserCronHealthCheckKey(identifier: string): string;
static getReferralLeaderboardRankingsKey(): string;
static getReferralLeaderboardUpdatedAtKey(): string;
static getReferralLeaderboardLatestSnapshotTSKey(): string;
static getUserSubscriptionFeaturesKey(userId: string): string;
/** @deprecated */
static getPendingSubscriptionKey(userId: string): string;
}