MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / invalidateUserCache

Function invalidateUserCache

model/user_cache.go:52–57  ·  view source on GitHub ↗

invalidateUserCache clears user cache

(userId int)

Source from the content-addressed store, hash-verified

50
51// invalidateUserCache clears user cache
52func invalidateUserCache(userId int) error {
53 if !common.RedisEnabled {
54 return nil
55 }
56 return common.RedisDelKey(getUserCacheKey(userId))
57}
58
59// updateUserCache updates all user cache fields using hash
60func updateUserCache(user User) error {

Callers 1

DeleteMethod · 0.85

Calls 2

RedisDelKeyFunction · 0.92
getUserCacheKeyFunction · 0.85

Tested by

no test coverage detected