feat: msg rpc local cache

This commit is contained in:
withchao
2024-01-18 15:06:07 +08:00
parent e26a582836
commit 899f1f15a4
6 changed files with 46 additions and 8 deletions
+20 -5
View File
@@ -528,23 +528,38 @@ prometheus:
thirdPrometheusPort: [ ${THIRD_PROM_PORT} ]
messageTransferPrometheusPort: [ ${MSG_TRANSFER_PROM_PORT} ] # List of ports
###################### LocalCache configuration information ######################
# topic: redis subscriber channel
# slotNum: number of slots, multiple slots can prevent too many keys from competing for a lock
# slotSize: number of slots, the number of cached keys per slot, the overall cache quantity is slotNum * slotSize
# successExpire: successful cache time seconds
# failedExpire: failed cache time seconds
# disable local caching and annotate topic, slotNum, and slotSize
localCache:
user:
topic: delete_cache_user
topic: DELETE_CACHE_USER
slotNum: 500
slotSize: 20000
successExpire: 300
failedExpire: 5
group:
topic: delete_cache_group
topic: DELETE_CACHE_GROUP
slotNum: 500
slotSize: 20000
successExpire: 300
failedExpire: 5
friend:
topic: delete_cache_friend
topic: DELETE_CACHE_FRIEND
slotNum: 500
slotSize: 20000
successExpire: 300
failedExpire: 5
conversation:
topic: delete_cache_conversation
topic: DELETE_CACHE_CONVERSATION
slotNum: 500
slotSize: 20000
slotSize: 20000
successExpire: 300
failedExpire: 5