()
| 221 | } |
| 222 | |
| 223 | func (v *Vault) invalidateTextSearchCache() { |
| 224 | v.searchCacheMu.Lock() |
| 225 | v.searchCache = nil |
| 226 | v.searchCacheMu.Unlock() |
| 227 | v.invalidateNoteMetaCache() |
| 228 | } |
| 229 | |
| 230 | func New(root string, opts Options) (*Vault, error) { |
| 231 | abs, err := filepath.Abs(root) |
no test coverage detected