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

Method RemoveAdminUserCacheInfo

internal/repo/auth/auth.go:186–192  ·  view source on GitHub ↗

RemoveAdminUserCacheInfo remove admin user cache info

(ctx context.Context, accessToken string)

Source from the content-addressed store, hash-verified

184
185// RemoveAdminUserCacheInfo remove admin user cache info
186func (ar *authRepo) RemoveAdminUserCacheInfo(ctx context.Context, accessToken string) (err error) {
187 err = ar.data.Cache.Del(ctx, constant.AdminTokenCacheKey+accessToken)
188 if err != nil {
189 return errors.InternalServer(reason.DatabaseError).WithError(err).WithStack()
190 }
191 return nil
192}
193
194// AddUserTokenMapping add user token mapping
195func (ar *authRepo) AddUserTokenMapping(ctx context.Context, userID, accessToken string) (err error) {

Callers

nothing calls this directly

Calls 1

DelMethod · 0.65

Tested by

no test coverage detected