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

Method OnAdd

internal/caches/list_interface.go:46–46  ·  view source on GitHub ↗

OnAdd 添加事件

(f func(item *Item))

Source from the content-addressed store, hash-verified

44
45 // OnAdd 添加事件
46 OnAdd(f func(item *Item))
47
48 // OnRemove 删除事件
49 OnRemove(f func(item *Item))

Callers 1

InitMethod · 0.65

Implementers 3

MemoryListinternal/caches/list_memory.go
KVFileListinternal/caches/list_file_kv.go
SQLiteFileListinternal/caches/list_file_sqlite.go

Calls

no outgoing calls

Tested by

no test coverage detected