MCPcopy Index your code
hub / github.com/apache/answer / RemoveUserVisitCacheInfo

Method RemoveUserVisitCacheInfo

internal/repo/auth/auth.go:110–116  ·  view source on GitHub ↗

RemoveUserVisitCacheInfo remove visit token cache

(ctx context.Context, visitToken string)

Source from the content-addressed store, hash-verified

108
109// RemoveUserVisitCacheInfo remove visit token cache
110func (ar *authRepo) RemoveUserVisitCacheInfo(ctx context.Context, visitToken string) (err error) {
111 err = ar.data.Cache.Del(ctx, constant.UserVisitTokenCacheKey+visitToken)
112 if err != nil {
113 return errors.InternalServer(reason.DatabaseError).WithError(err).WithStack()
114 }
115 return nil
116}
117
118// SetUserStatus set user status
119func (ar *authRepo) SetUserStatus(ctx context.Context, userID string, userInfo *entity.UserCacheInfo) (err error) {

Callers

nothing calls this directly

Calls 1

DelMethod · 0.65

Tested by

no test coverage detected