(cacheHit bool)
| 302 | } |
| 303 | |
| 304 | func (rc *LRURevisionCache) statsRecorderFunc(cacheHit bool) { |
| 305 | |
| 306 | if cacheHit { |
| 307 | rc.cacheHits.Add(1) |
| 308 | } else { |
| 309 | rc.cacheMisses.Add(1) |
| 310 | } |
| 311 | } |
| 312 | |
| 313 | // Adds a revision to the cache. |
| 314 | func (rc *LRURevisionCache) Put(ctx context.Context, docRev DocumentRevision, collectionID uint32) { |
no test coverage detected