github.com/leslie-fei/fastcache@v0.0.0-20240520092641-b7a9eb05711f/metadata.go (about) 1 package fastcache 2 3 type Metadata struct { 4 GlobalLocker Locker // 全局锁 5 Magic uint64 6 TotalSize uint64 7 Used uint64 8 Shards uint32 9 } 10 11 func (m *Metadata) Reset() { 12 m.Magic = 0 13 m.TotalSize = 0 14 m.Used = 0 15 }