RemoveUserCacheInfo remove user cache info
(ctx context.Context, accessToken string)
| 99 | |
| 100 | // RemoveUserCacheInfo remove user cache info |
| 101 | func (ar *authRepo) RemoveUserCacheInfo(ctx context.Context, accessToken string) (err error) { |
| 102 | err = ar.data.Cache.Del(ctx, constant.UserTokenCacheKey+accessToken) |
| 103 | if err != nil { |
| 104 | return errors.InternalServer(reason.DatabaseError).WithError(err).WithStack() |
| 105 | } |
| 106 | return nil |
| 107 | } |
| 108 | |
| 109 | // RemoveUserVisitCacheInfo remove visit token cache |
| 110 | func (ar *authRepo) RemoveUserVisitCacheInfo(ctx context.Context, visitToken string) (err error) { |