Skip to content

Commit

Permalink
[Fix] RedisLock Value Type 수정 (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
Youhoseong authored Feb 26, 2023
1 parent f481137 commit 0da9253
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public <T> T executeWithLock(LockType lockType, String key, Long expirationSecon
}

private void lock(String key, Long expirationSeconds) {
final boolean result = redisTemplate.opsForValue().setIfAbsent(key, 1, Duration.ofSeconds(expirationSeconds));
final boolean result = redisTemplate.opsForValue().setIfAbsent(key, 1L, Duration.ofSeconds(expirationSeconds));
if(!result) {
throw new KeeweException(KeeweRtnConsts.ERR507);
}
Expand Down

0 comments on commit 0da9253

Please sign in to comment.