Progressive cache elimination method and device, electronic equipment and storage medium
The embodiment of the invention relates to a progressive cache elimination method and device, electronic equipment and a storage medium, and belongs to the technical field of game development.The method comprises the steps of preloading data of active players from a database to enter a cache, wherei...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the invention relates to a progressive cache elimination method and device, electronic equipment and a storage medium, and belongs to the technical field of game development.The method comprises the steps of preloading data of active players from a database to enter a cache, wherein the cache is stored through a cache chain table; if the player is online, querying the data of theplayer in the cache linked list, and if the data of the player cannot be queried, loading the data of the player from the database; if the player is offline, storing the data of the player into a cache chain table; and when the cache reaches a preset elimination condition, eliminating the data from the tail of the cache linked list according to a preset progressive cache elimination strategy. Bypreloading the cache, high concurrency of login of a player can be efficiently dealt with, and a peak clipping effect is achieved. In addition, the progressive cache elimination strategy improves theCPU utilization rate of the |
---|