All checks were successful
Release Tag / release (push) Successful in 13s
- Added AccessCount field to FileInfo struct for improved tracking of file access frequency. - Updated NewFileInfo and NewFileInfoFromOS functions to initialize AccessCount. - Modified DiskFS and MemoryFS to preserve and increment AccessCount during file operations. - Enhanced garbage collection methods (LRU, LFU, FIFO, Largest, Smallest, Hybrid) to utilize AccessCount for more effective space reclamation.
67 lines
1.9 KiB
JSON
67 lines
1.9 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Launch Memory & Disk",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "auto",
|
|
"program": "${workspaceFolder}/main.go",
|
|
"args": [
|
|
"--memory",
|
|
"1G",
|
|
"--disk",
|
|
"10G",
|
|
"--disk-path",
|
|
"tmp/disk",
|
|
"--memory-gc",
|
|
"lfu",
|
|
"--disk-gc",
|
|
"lru",
|
|
"--log-level",
|
|
"debug",
|
|
// "--upstream",
|
|
// "http://192.168.2.5:80",
|
|
],
|
|
},
|
|
{
|
|
"name": "Launch Disk Only",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "auto",
|
|
"program": "${workspaceFolder}/main.go",
|
|
"args": [
|
|
"--disk",
|
|
"10G",
|
|
"--disk-path",
|
|
"tmp/disk",
|
|
"--disk-gc",
|
|
"hybrid",
|
|
"--log-level",
|
|
"debug",
|
|
// "--upstream",
|
|
// "http://192.168.2.5:80",
|
|
],
|
|
},
|
|
{
|
|
"name": "Launch Memory Only",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "auto",
|
|
"program": "${workspaceFolder}/main.go",
|
|
"args": [
|
|
"--memory",
|
|
"1G",
|
|
"--memory-gc",
|
|
"lru",
|
|
"--log-level",
|
|
"debug",
|
|
// "--upstream",
|
|
// "http://192.168.2.5:80",
|
|
],
|
|
}
|
|
]
|
|
} |