Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Loki 로그
- 개발 어렵당.ㅠ
- fake jwt
- Ingress Controller Fake
- reids
- UnsupportedOperationException
- LPOS
- intellij
- Armeria
- 핀포인트
- save/update
- 월급루팡 일지
- jar 배포
- 노드간 통신
- 애자일 싫타
- R2DBC Paging
- pinpoint
- 티스토리챌린지
- nGinder
- 7879
- 플루터
- OIDC
- 논블록킹 성능
- ㅉ때
- formik
- RedirectService
- hbase 저장공간 설정
- jsonMarshaller
- 오블완
- pinpoint 2.5.3
Archives
- Today
- Total
대머리개발자
[레디스] ERR unknown command `LPOS` 본문
728x90
우리 네이버 형님들.... 5.0.14 따쉬. ㅠㅠ
하악하악....
기존 리스트로 관리하고 있는 "키 배열"에서 사용을 했으면 새로운 키로 대체 해주는 코드이다.
return reactiveRedisOperations.opsForList().indexOf(key, oldValue)
.flatMap( index -> reactiveRedisOperations.opsForList().set(key, index, newValue)
.then( reactiveRedisOperations.expire(key, Duration.ofSeconds(seconds))))
range로 순회해야지.. ㅠ index() 적용 하면 튜플로 나온다... (0, key) (1, key)....
다행이다...
return reactiveRedisOperations.opsForList().range(key, 0, endpoint)
.index()
.filter( tuple_ -> tuple_.getT2().equals( oldValue))
.flatMap( hit_tuple -> reactiveRedisOperations.opsForList().set(key, hit_tuple.getT1(), newValue)
.then(reactiveRedisOperations.expire(key, Duration.ofSeconds(seconds)))
).then(Mono.just(true));
728x90
'개발이야기 > 예외' 카테고리의 다른 글
jpa 다중 DB 설정 시 마주하는 오류 (1) | 2024.04.08 |
---|---|
http1.1 get은 브라우저가 캐쉬를 하네.ㅎㄷㄷ (0) | 2023.11.01 |
간만에 mybatis 힘들구만 (1) | 2023.10.10 |
Jasypt 복호화 이슈 (In centos7) (0) | 2023.09.11 |
[코틀린] Could not autowire (0) | 2023.09.04 |