()
| 83 | } |
| 84 | |
| 85 | func (f *fileSystemCache) Stats() Stats { |
| 86 | var s Stats |
| 87 | s.Size = atomic.LoadUint64(&f.stats.Size) |
| 88 | s.Items = atomic.LoadUint64(&f.stats.Items) |
| 89 | return s |
| 90 | } |
| 91 | |
| 92 | func (f *fileSystemCache) Get(key *Key) (*CachedData, error) { |
| 93 | fp := key.filePath(f.dir) |