(storage Storage, storageDefId string, filename string)
| 10 | } |
| 11 | |
| 12 | func GetMetaCached(storage Storage, storageDefId string, filename string) FileMeta { |
| 13 | key := cacheKey{storageDefId, filename} |
| 14 | if meta, ok := metaCache.Get(key); ok { |
| 15 | return meta |
| 16 | } |
| 17 | |
| 18 | meta := storage.GetMeta(filename) |
| 19 | metaCache.Add(key, meta) |
| 20 | return meta |
| 21 | } |
no test coverage detected