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

Function InitLibraryFileCountCacheInvalidator

api/service/library_permission.go:24–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22var libraryFileCountCacheInitOnce sync.Once
23
24func InitLibraryFileCountCacheInvalidator() {
25 libraryFileCountCacheInitOnce.Do(func() {
26 model.SetFileCountCacheInvalidator(invalidateLibraryFileCountCache)
27 })
28}
29
30func invalidateLibraryFileCountCache(eid int64, libraryID int64) {
31 if libraryID <= 0 || !common.RedisEnabled {

Callers

nothing calls this directly

Calls 1

DoMethod · 0.65

Tested by

no test coverage detected