RemoveUserVisitCacheInfo remove visit token cache
(ctx context.Context, visitToken string)
| 108 | |
| 109 | // RemoveUserVisitCacheInfo remove visit token cache |
| 110 | func (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 |
| 119 | func (ar *authRepo) SetUserStatus(ctx context.Context, userID string, userInfo *entity.UserCacheInfo) (err error) { |