Use inode number and size for more robust entries change tracking

This commit is contained in:
Kovid Goyal
2025-10-08 07:28:02 +05:30
parent a6335777d9
commit 16cdcf8cf8
3 changed files with 67 additions and 19 deletions

View File

@@ -77,6 +77,7 @@ func TestDiskCache(t *testing.T) {
arc(dc, 1) // because dc2.Get() will have updated the file
arc(dc2, 1)
ak("k1")
arc(dc2, 2) // because dc.Add() will have updated the file
dc2.Add("k2", map[string][]byte{"1": []byte("123456789")})
arc(dc, 1)
arc(dc2, 2)