UNPKG

@satoshibits/cache-keys

Version:
43 lines 1.96 kB
import type { ID } from '../types.mjs'; /** * Account-related cache key factories */ export declare const accountKeys: { /** * Account details key * @example accountKeys.details.key('507f1f77bcf86cd799439011') * @returns 'account:details:507f1f77bcf86cd799439011' */ readonly details: import("../types.mjs").CacheKeyFactory<`account:details:${string}`, [id: string | number]>; /** * Account billing information key * @example accountKeys.billing.key('507f1f77bcf86cd799439011') * @returns 'account:billing:507f1f77bcf86cd799439011' */ readonly billing: import("../types.mjs").CacheKeyFactory<`account:billing:${string}`, [id: string | number]>; /** * Account usage by period key * @example accountKeys.usage.key('507f1f77bcf86cd799439011', '2024-01') * @returns 'account:usage:507f1f77bcf86cd799439011:2024-01' */ readonly usage: import("../types.mjs").CacheKeyFactory<`account:usage:${string}:${string}`, [accountId: ID, period: string]>; /** * Account settings key * @example accountKeys.settings.key('507f1f77bcf86cd799439011') * @returns 'account:settings:507f1f77bcf86cd799439011' */ readonly settings: import("../types.mjs").CacheKeyFactory<`account:settings:${string}`, [id: string | number]>; /** * Account members list key * @example accountKeys.members.key('507f1f77bcf86cd799439011') * @returns 'account:members:507f1f77bcf86cd799439011' */ readonly members: import("../types.mjs").CacheKeyFactory<`account:members:${string}`, [id: string | number]>; /** * Account subscription status key * @example accountKeys.subscription.key('507f1f77bcf86cd799439011') * @returns 'account:subscription:507f1f77bcf86cd799439011' */ readonly subscription: import("../types.mjs").CacheKeyFactory<`account:subscription:${string}`, [id: string | number]>; }; //# sourceMappingURL=account.d.mts.map