ELL

레디스 개발자 교육 신청 레디스 정기점검/기술지원
Redis Technical Support
레디스 엔터프라이즈 서버
Redis Enterprise Server

key 조회

사용법은 ELL * 이다.
출력은 type|key|value|last_update_time|expire_time 이다.
ELS에 비해서 다양한 정보를 보여준다.
📍출력(조회) 개수 제한: redis.conf ll_max 10000 으로 제한된다.
📍제한 이유: 키 개수가 매우 많고(예:1천만개 이상) 제한이 없을 경우 이 명령을 실행하는 동안 다른 명령을 실행할 수 없으므로 운영(production) 서버에서는 문제가 될 수 있다.
ll_max의 기본(default) 값이 10000 이다. 필요에 따라 운영 중 config set 명령으로 변경해서 사용할 수 있다.

Example

명령>ell     ℹ️ 'key_pattern'을 지정하지 않으면 모든 키가 조회된다.
결과>0) type|key|value|last_update_time|expire_time
1) string|keyB_000538223312|valueB_000690908426|[2025-07-21 08:50:25]|[]
2) string|keyB_000652109500|valueB_000453698114|[2025-07-21 08:50:25]|[]
.......................
804) hash|myhash76|3|[2025-07-21 08:50:52]|[]
명령>ell *
결과>0) type|key|value|last_update_time|expire_time
1) string|keyB_000538223312|valueB_000690908426|[2025-07-21 08:50:25]|[]
2) string|keyB_000652109500|valueB_000453698114|[2025-07-21 08:50:25]|[]
.......................
804) hash|myhash76|3|[2025-07-21 08:50:52]|[]
명령>ell keyA*     ℹ️ keyA로 시작하는 키 조회
결과>0) type|key|value|last_update_time|expire_time
1) string|keyA_000375248904|valueA_000481358125|[2025-07-21 08:50:18]|[]
2) string|keyA_000082855540|valueA_000895238258|[2025-07-21 08:50:18]|[]
.......................
200) string|keyA_000962842702|valueA_000140923508|[2025-07-21 08:50:18]|[]
명령>ell * string     ℹ️ string data type 키 조회
결과>0) type|key|value|last_update_time|expire_time
1) string|keyB_000538223312|valueB_000690908426|[2025-07-21 08:50:25]|[]
2) string|keyB_000652109500|valueB_000453698114|[2025-07-21 08:50:25]|[]
.......................
403) string|keyA_000962842702|valueA_000140923508|[2025-07-21 08:50:18]|[]    
ℹ️ ent810 부터 data type 별로 분리되어 저장되므로 data type을 지정해서 조회하는 것을 권장합니다.
명령>ell * string count 10     ℹ️ 출력(조회) 개수 count 지정
결과>0) type|key|value|last_update_time|expire_time
1) string|keyB_000538223312|valueB_000690908426|[2025-07-21 08:50:25]|[]
2) string|keyB_000652109500|valueB_000453698114|[2025-07-21 08:50:25]|[]
.......................
10) string|keyB_000015333864|valueB_000209398665|[2025-07-21 08:50:25]|[]


명령문

ELL [key_pattern] [data_type] [COUNT count]

  • 이 명령은 Ent 8.1.0 부터 사용할 수 있다.
  • 논리적 처리 소요시간은 O(N)이다.

<< ELS ELL ERM >>

Email 답글이 올라오면 이메일로 알려드리겠습니다.