MCPcopy Create free account
hub / github.com/53AI/53AIHub / invalidateLibraryFileCountCache

Function invalidateLibraryFileCountCache

api/model/file.go:636–640  ·  view source on GitHub ↗
(eid int64, libraryID int64)

Source from the content-addressed store, hash-verified

634}
635
636func invalidateLibraryFileCountCache(eid int64, libraryID int64) {
637 if libraryID > 0 && fileCountCacheInvalidator != nil {
638 fileCountCacheInvalidator(eid, libraryID)
639 }
640}
641
642// CountNotDeletedFilesByLibraryIDs 按知识库批量统计未删除文件数(仅统计文档,不含目录)
643func CountNotDeletedFilesByLibraryIDs(eid int64, libraryIDs []int64) (map[int64]int64, error) {

Callers 5

SaveMethod · 0.70
RestoreFileFunction · 0.70
DeleteFileFunction · 0.70
SoftDeleteFileFunction · 0.70
RestoreDeletedFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected