MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / IncreaseHit

Method IncreaseHit

internal/caches/list_file_sqlite.go:387–395  ·  view source on GitHub ↗

IncreaseHit 增加点击量

(hash string)

Source from the content-addressed store, hash-verified

385
386// IncreaseHit 增加点击量
387func (this *SQLiteFileList) IncreaseHit(hash string) error {
388 var db = this.GetDB(hash)
389
390 if !db.IsReady() {
391 return nil
392 }
393
394 return db.IncreaseHitAsync(hash)
395}
396
397// OnAdd 添加事件
398func (this *SQLiteFileList) OnAdd(f func(item *Item)) {

Callers

nothing calls this directly

Calls 3

GetDBMethod · 0.95
IncreaseHitAsyncMethod · 0.80
IsReadyMethod · 0.65

Tested by

no test coverage detected