Skip to content

Commit

Permalink
style: refreshToken entity 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
seoyoung7623 committed Feb 26, 2024
1 parent 7887d70 commit 3b0c7a2
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
package com.example.gojipserver.global.config.redis.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;

@Getter
@RedisHash(value = "refreshToken", timeToLive = 14440)
@AllArgsConstructor
public class RefreshToken {

@Id
private String refreshToken;
private String email;

public RefreshToken(String refreshToken, String email) {
this.refreshToken = refreshToken;
this.email = email;
}
}

0 comments on commit 3b0c7a2

Please sign in to comment.