Skip to content

Commit dd0b182

Browse files
committed
feat(example): ad server private helpers
1 parent 29760cc commit dd0b182

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ad-server-cache-bun/src/ads.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ export class AdMetadataStore {
1515
this.client = client;
1616
}
1717

18-
metadataKey(metadataId: string): string {
18+
private metadataKey(metadataId: string): string {
1919
return `${AdMetadataStore.AD_METADATA_PREFIX}:${metadataId}`;
2020
}
2121

22-
categoryKey(metadataCategory: string): string {
22+
private categoryKey(metadataCategory: string): string {
2323
return `${AdMetadataStore.AD_CATEGORY_PREFIX}:${metadataCategory}`;
2424
}
2525

26-
userPreferenceKey(userId: string): string {
26+
private userPreferenceKey(userId: string): string {
2727
return `${AdMetadataStore.AD_USER_PREFERENCE_PREFIX}:${userId}`;
2828
}
2929

@@ -72,7 +72,7 @@ export class AdMetadataStore {
7272
return await this.getAdMetadataList(adIds);
7373
}
7474

75-
async getAdMetadataList(ids: Array<string>): Promise<Array<AdMetadata>> {
75+
private async getAdMetadataList(ids: Array<string>): Promise<Array<AdMetadata>> {
7676
const pipeline = this.client.pipeline();
7777
ids.forEach((id: string) => {
7878
pipeline.hgetall(this.metadataKey(id))

0 commit comments

Comments
 (0)