mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-11 12:36:00 +08:00
feat: msg rpc local cache
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user