Age | Commit message (Collapse) | Author |
|
|
|
|
|
Switch to
NAME Type = val
instead of
NAME = Type(val)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I really want an OnEvict callback.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is lame, but it matches what the C btrfs-progs does.
|
|
|
|
|
|
|
|
|
|
|
|
Go 1.18 added net/netip.Addr.Compare, and Go 1.20 added time.Time.Compare.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
And also have the cache consume less memory.
|
|
Save some memory.
|