Skip to content

update shared cache key#104

Closed
anhtuan-bic wants to merge 1 commit intomasterfrom
feat/BEIN-33031-pending-list-enhancement
Closed

update shared cache key#104
anhtuan-bic wants to merge 1 commit intomasterfrom
feat/BEIN-33031-pending-list-enhancement

Conversation

@anhtuan-bic
Copy link
Contributor

No description provided.

public static seenStatusOfUserForNewInvitations(userId: string): string {
return [
SharedGroupCacheKey.PREFIX,
SharedGroupCacheKey.hashTag,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hashtag này để chỉ định node trong memoryDb (cái con mà lưu shared_group) do xài MemoryDb thì AWS nó bắt chạy cluster, mà mình chỉ có 1 node thôi. Còn cache xài riêng cho mỗi service thì lưu ở Elasticache, ko có cluster, nên ko cần hashtag. Dùng MemoryDb để lưu shared data xài chung cho các service do nó đảm bảo data sẽ ko mất, còn Elasticache thì mình lưu tạm bợ (có set expire).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cache này xài cho 1 mình service mình thôi nên ko cần lưu vô package chung nha, prefix thì mình có biến REDIS_CACHE_PREFIX rồi.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc anh @quochung-bic review cái review này ổn ko nha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants