dump
DUMP
레디스 개발자 교육 신청
|
레디스 정기점검/기술지원Redis Technical Support |
레디스 엔터프라이즈 서버Redis Enterprise Server |
|---|
data를 dump
간단한 사용법은 dump key 이다.
Redis-specific format으로 값을 리턴한다. RESTORE 명령으로 DB 다시 저장할 수 있다.
Dump data에 Expire time은 포함하지 않는다. RESTORE 시 expire time을 설정할 수 있다.
Example
| 명령> | set key a |
| 결과> | OK |
| 명령> | dump key |
| 결과> | "\x00\x01a\x06\x00)\x13\x87\x1bzcA'" |
| 명령> | del key |
| 결과> | 1 |
| 명령> | restore key 0 "\x00\x01a\x06\x00)\x13\x87\x1bzcA'" |
| 결과> | OK |
| 명령> | get key |
| 결과> | a |
명령문
DUMP key
- 이 명령은 version 2.6.0 부터 사용할 수 있다.
- 논리적 처리 소요시간은 O(1)이다.
| 관련 명령 | RESTORE, MIGRATE |
| Clients for Java | Jedis, Lettuce, Redisson | Clients for C | Hiredis |
| << MOVE | DUMP | RESTORE >> |
|---|
Email
답글이 올라오면 이메일로 알려드리겠습니다.
