Skip to content

Commit

Permalink
fix : 레디스 빈 등록 오타 수정 (CC-183) (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
j2noo authored Aug 23, 2024
1 parent 22f945c commit 4767a58
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ public class RacingGameInfoRepository {
private final RedisTemplate<String, Object> redisTemplate;

@Qualifier("redisReadOnlyTemplate")
private final RedisTemplate<String, Object> redisReadonlyTemplate;
private final RedisTemplate<String, Object> redisReadOnlyTemplate;

public RacingGameInfoRepository(
@Qualifier("redisTemplate") RedisTemplate<String, Object> redisTemplate,
@Qualifier("redisReadOnlyTemplate") RedisTemplate<String, Object> redisReadonlyTemplate) {
RedisTemplate<String, Object> redisTemplate,
RedisTemplate<String, Object> redisReadOnlyTemplate) {
this.redisTemplate = redisTemplate;
this.redisReadonlyTemplate = redisReadonlyTemplate;
this.redisReadOnlyTemplate = redisReadOnlyTemplate;
}

// 레디스에 저장하는 로직
Expand All @@ -32,6 +32,6 @@ public RacingGameInfo save(RacingGameInfo gameInfo) {

// 레디스에 저장된 객체를 가져오는 로직
public RacingGameInfo get() {
return (RacingGameInfo) redisReadonlyTemplate.opsForValue().get(KEY);
return (RacingGameInfo) redisReadOnlyTemplate.opsForValue().get(KEY);
}
}

0 comments on commit 4767a58

Please sign in to comment.