Skip to content

Commit

Permalink
[fix] redis timetolive 설정 오류 변경하기
Browse files Browse the repository at this point in the history
  • Loading branch information
JeonHaeseung committed Jul 9, 2024
1 parent ecc1522 commit ea80eda
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@Getter
@NoArgsConstructor
//@RedisHash(value = "refreshToken", timeToLive = 60*60*24*14)
@RedisHash(value = "refreshToken", timeToLive = 5)
@RedisHash(value = "refreshToken", timeToLive = 60*5)
public class RefreshToken { /* Redis에 저장해서 RefreshToken이 유효한지 검증 */
@Id
@Indexed
Expand All @@ -29,6 +29,6 @@ public RefreshToken(String jwtRefreshToken, String authKey) {
this.jwtRefreshToken = jwtRefreshToken;
this.authKey = authKey;
//this.ttl = 1000L * 60 * 60 * 24 * 14;
this.ttl = 1000L * 5;
this.ttl = 1000L * 60 * 5;
}
}

0 comments on commit ea80eda

Please sign in to comment.