Cache elimination method and device, electronic device and storage medium
The invention relates to a cache elimination method and device, an electronic device and a storage medium, and the method comprises the steps: obtaining the access frequency of to-be-cached data; if the number of access times is smaller than a preset threshold value, establishing a data node at the...
Gespeichert in:
Hauptverfasser: | , , , |
---|---|
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 invention relates to a cache elimination method and device, an electronic device and a storage medium, and the method comprises the steps: obtaining the access frequency of to-be-cached data; if the number of access times is smaller than a preset threshold value, establishing a data node at the head position of a cold area cache chain table; storing the to-be-cached data into the data node at the head position of the cold area cache chain table; and if the number of the data nodes of the cold area cache linked list exceeds a first preset value, deleting the data nodes at the tail position of the cold area cache linked list. Through the method and the device, the problem that the hotspot access data is extruded out of the memory space by a large amount of infrequently-used data is solved, and stable storage of the hotspot access data in the memory space is realized.
本申请涉及一种缓存淘汰方法、装置、电子装置和存储介质,其中,该缓存淘汰方法包括:获取待缓存数据的访问次数;若所述访问次数小于预设阈值,则在冷区缓存链表的头部位置建立数据节点;将所述待缓存数据存入所述冷区缓存链表的头部位置的所述数据节点;若所述冷区缓存链表的所述数据节点的数量超过第一预 |
---|