(ctx context.Context, path string)
| 190 | } |
| 191 | |
| 192 | func (s *CacheHandler) cacheGet(ctx context.Context, path string) (*tree.Node, bool) { |
| 193 | if c, ok := s.getCtxCache(ctx).GetBytes(cacheNodePrefix + path); ok { |
| 194 | var dir *tree.Node |
| 195 | if ee := json.Unmarshal(c, &dir); ee == nil { |
| 196 | return dir, true |
| 197 | } |
| 198 | } |
| 199 | return nil, false |
| 200 | } |
| 201 | |
| 202 | func (s *CacheHandler) cacheDiff(ctx context.Context, path string) (*cacheDiff, bool) { |
| 203 | log.Logger(ctx).Debug("Looking for cacheDiff for " + path) |
no test coverage detected