16-05-2023 дата публикации
Номер: CN116126912A
Принадлежит:
The hotspot data caching method provided by the invention comprises the following steps: acquiring a target activity ID, a request type and a target node; determining a target activity corresponding to the target activity ID; if the local cache service is started, judging whether the first target number recorded in the local cache is zero or not; if the first target number is zero, judging whether a second target number recorded in the remote cache is zero or not; if the second target number is not zero, calculating a third target number; if the second target number is greater than the third target number, updating the first target number recorded in the local cache to the third target number, and updating the second target number recorded in the remote cache to a difference value between the second target number and the third target number; and according to the request type, selecting a strategy corresponding to the request type to process the number of activity quotas corresponding to ...
Подробнее