Skip to content

Commit 27ed70b

Browse files
committed
hotfix: 키워드 검색 Redis 임시 비활성화
1 parent 7ab1fff commit 27ed70b

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/main/java/com/itstime/xpact/global/openai/OpenAiServiceImpl.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -176,16 +176,16 @@ public CompletableFuture<String> analysisWeakness(String weakness, String experi
176176
// 3가지 약점 분석 -> 3가지 약점에 맞춘 맞춤형 활동 추천하기
177177
public List<String> getRecommendActivities(String weakness) {
178178

179-
String cacheKey = "keywords:" + weakness;
180-
String cached = redisTemplate.opsForValue().get(cacheKey);
181-
182-
// Redis Cache 조회
183-
if (cached != null && !cached.isBlank()) {
184-
return Arrays.stream(cached.split(","))
185-
.map(String::trim)
186-
.filter(str -> !str.isEmpty())
187-
.toList();
188-
}
179+
// String cacheKey = "keywords:" + weakness;
180+
// String cached = redisTemplate.opsForValue().get(cacheKey);
181+
//
182+
// // Redis Cache 조회
183+
// if (cached != null && !cached.isBlank()) {
184+
// return Arrays.stream(cached.split(","))
185+
// .map(String::trim)
186+
// .filter(str -> !str.isEmpty())
187+
// .toList();
188+
// }
189189

190190
String systemString = String.join(" ",
191191
"너는 입력된 키워드를 기반으로 의미적으로 관련된 직무, 기술, 산업, 직군 키워드를 추천해주는 전문가다.",
@@ -205,7 +205,7 @@ public List<String> getRecommendActivities(String weakness) {
205205
String result = response.getResult().getOutput().getText();
206206
log.info("result : {}", result);
207207

208-
redisTemplate.opsForValue().set(cacheKey, result, 86400, TimeUnit.SECONDS);
208+
// redisTemplate.opsForValue().set(cacheKey, result, 86400, TimeUnit.SECONDS);
209209

210210
return Arrays.stream(result.split(","))
211211
.map(String::trim)

0 commit comments

Comments
 (0)