(f func(ExcerptT) bool)
| 385 | } |
| 386 | |
| 387 | func (sc *SubCache[EntityT, ExcerptT, CacheT]) ResolveMatcher(f func(ExcerptT) bool) (CacheT, error) { |
| 388 | id, err := sc.resolveMatcher(f) |
| 389 | if err != nil { |
| 390 | return *new(CacheT), err |
| 391 | } |
| 392 | return sc.Resolve(id) |
| 393 | } |
| 394 | |
| 395 | // ResolveExcerpt retrieve an Excerpt matching the exact given id |
| 396 | func (sc *SubCache[EntityT, ExcerptT, CacheT]) ResolveExcerpt(id entity.Id) (ExcerptT, error) { |
no test coverage detected