diff --git a/BE/exceed/src/main/java/com/gaebaljip/exceed/adapter/out/redis/RedisAdapter.java b/BE/exceed/src/main/java/com/gaebaljip/exceed/adapter/out/redis/RedisAdapter.java index ba720ee3..c60f0330 100644 --- a/BE/exceed/src/main/java/com/gaebaljip/exceed/adapter/out/redis/RedisAdapter.java +++ b/BE/exceed/src/main/java/com/gaebaljip/exceed/adapter/out/redis/RedisAdapter.java @@ -22,12 +22,12 @@ public void saveWithExpiration(String key, String code, Long expiredTime) { @Override @Timer - public Optional query(String email) { - return Optional.ofNullable(redisUtils.getData(email)); + public Optional query(String key) { + return Optional.ofNullable(redisUtils.getData(key)); } @Override - public void delete(String email) { - redisUtils.deleteData(email); + public void delete(String key) { + redisUtils.deleteData(key); } } diff --git a/BE/exceed/src/main/java/com/gaebaljip/exceed/application/port/out/member/CodePort.java b/BE/exceed/src/main/java/com/gaebaljip/exceed/application/port/out/member/CodePort.java index 414c4869..54a1262c 100644 --- a/BE/exceed/src/main/java/com/gaebaljip/exceed/application/port/out/member/CodePort.java +++ b/BE/exceed/src/main/java/com/gaebaljip/exceed/application/port/out/member/CodePort.java @@ -6,9 +6,9 @@ @Component public interface CodePort { - void saveWithExpiration(String email, String code, Long expiredTime); + void saveWithExpiration(String key, String code, Long expiredTime); - Optional query(String email); + Optional query(String key); - void delete(String email); + void delete(String key); }