Redis에서 리스트의 데이터를 확인하려면 LRANGE 명령어를 사용합니다. 이 명령어는 리스트의 특정 범위 내에 있는 요소들을 반환합니다.
형식:
LRANGE <key> <start> <stop>
- start: 시작 인덱스 (0부터 시작)
- stop: 끝 인덱스 (-1은 리스트의 마지막 요소까지를 의미)
예시로, 리스트의 모든 데이터를 확인하려면:
LRANGE QCS:11270016379127001 0 -1
이 명령어는 리스트 QCS:11270016379127001의 모든 요소를 반환합니다.
127.0.0.1:6379> TYPE QCS:11270016379127001
list
127.0.0.1:6379> LLEN QCS:11270016379127001
(integer) 63
127.0.0.1:6379>
127.0.0.1:6379> LRANGE QCS:11270016379127001 0 -1
1) "{\"proto\":\"response/json\",\"sender\":\"11270016379127001\",\"id\":null,\"ts\":\"[2024-09-30 08:31:04.523]\",\"method\":\"realkrx\",\"query\":\"A301S\",\"data\":\"{\\\"dataClass\\\":\\\"A3\\\",\\\"infoMarketClass\\\":\\\"01S\\\",\\\"distributeStockIndex\\\":\\\" \\\",\\\"boardID\\\":\\\"G1\\\",\\\"sessionID\\\":\\\"40\\\",\\\"stockCode\\\":\\\"KR7005930003\\\",\\\"stockSeq\\\":\\\"000379\\\",\\\"transactionProcessingTime\\\":\\\"090016340616\\\",\\\"upDown\\\":\\\"2\\\",\\\"gap\\\":\\\"00000000600\\\",\\\"tradePrice\\\":\\\"00000065900\\\",\\\"tradeVolume\\\":\\\"0000000014\\\",\\\"openPrice\\\":\\\"00000065900\\\",\\\"highPrice\\\":\\\"00000066000\\\",\\\"lowPrice\\\":\\\"00000065800\\\",\\\"accmTradeVolume\\\":\\\"000000740706\\\",\\\"accmTradeAmount\\\":\\\"000000048808907100.000\\\",\\\"lastAskBidClassCode\\\":\\\"1\\\",\\\"LPHoldingVolume\\\":\\\"000000000000000\\\",\\\"askOneQuote\\\":\\\"00000066000\\\",\\\"bidOneQuote\\\":\\\"00000065900\\\",\\\"endText\\\":\\\"NULL\\\"}\",\"result\":\"SUCC\"}"
2) "{\"proto\":\"response/json\",\"sender\":\"11270016379127001\",\"id\":null,\"ts\":\"[2024-09-30 08:31:04.541]\",\"method\":\"realkrx\",\"query\":\"A301S\",\"data\":\"{\\\"dataClass\\\":\\\"A3\\\",\\\"infoMarketClass\\\":\\\"01S\\\",\\\"distributeStockIndex\\\":\\\" \\\",\\\"boardID\\\":\\\"G1\\\",\\\"sessionID\\\":\\\"40\\\",\\\"stockCode\\\":\\\"KR7005930003\\\",\\\"stockSeq\\\":\\\"000379\\\",\\\"transactionProcessingTime\\\":\\\"090203148634\\\",\\\"upDown\\\":\\\"2\\\",\\\"gap\\\":\\\"00000000300\\\",\\\"tradePrice\\\":\\\"00000065600\\\",\\\"tradeVolume\\\":\\\"0000000001\\\",\\\"openPrice\\\":\\\"00000065900\\\",\\\"highPrice\\\":\\\"00000066000\\\",\\\"lowPrice\\\":\\\"00000065600\\\",\\\"accmTradeVolume\\\":\\\"000001311321\\\",\\\"accmTradeAmount\\\":\\\"000000086341981200.000\\\",\\\"lastAskBidClassCode\\\":\\\"1\\\",\\\"LPHoldingVolume\\\":\\\"000000000000000\\\",\\\"askOneQuote\\\":\\\"00000065700\\\",\\\"bidOneQuote\\\":\\\"00000065600\\\",\\\"endText\\\":\\\"NULL\\\"}\",\"result\":\"SUCC\"}"
3) "{\"proto\":\"response/json\",\"sender\":\"11270016379127001\",\"id\":null,\"ts\":\"[2024-09-30 08:31:04.556]\",\"method\":\"realkrx\",\"query\":\"A301S\",\"data\":\"{\\\"dataClass\\\":\\\"A3\\\",\\\"infoMarketClass\\\":\\\"01S\\\",\\\"distributeStockIndex\\\":\\\" \\\",\\\"boardID\\\":\\\"G1\\\",\\\"sessionID\\\":\\\"40\\\",\\\"stockCode\\\":\\\"KR7005930003\\\",\\\"stockSeq\\\":\\\"000379\\\",\\\"transactionProcessingTime\\\":\\\"090423001705\\\",\\\"upDown\\\":\\\"2\\\",\\\"gap\\\":\\\"00000000400\\\",\\\"tradePrice\\\":\\\"00000065700\\\",\\\"tradeVolume\\\":\\\"0000000001\\\",\\\"openPrice\\\":\\\"00000065900\\\",\\\"highPrice\\\":\\\"00000066000\\\",\\\"lowPrice\\\":\\\"00000065600\\\",\\\"accmTradeVolume\\\":\\\"000001580913\\\",\\\"accmTradeAmount\\\":\\\"000000104057729600.000\\\",\\\"lastAskBidClassCode\\\":\\\"1\\\",\\\"LPHoldingVolume\\\":\\\"000000000000000\\\",\\\"askOneQuote\\\":\\\"00000000000\\\",\\\"bidOneQuote\\\":\\\"00000000000\\\",\\\"endText\\\":\\\"NULL\\\"}\",\"result\":\"SUCC\"}"
4) "{\"proto\":\"response/json\",\"sender\":\"11270016379127001\",\"id\":null,\"ts\":\"[2024-09-30 08:31:04.575]\",\"method\":\"realkrx\",\"query\":\"A301S\",\"data\":\"{\\\"dataClass\\\":\\\"A3\\\",\\\"infoMarketClass\\\":\\\"01S\\\",\\\"distributeStockIndex\\\":\\\" \\\",\\\"boardID\\\":\\\"G1\\\",\\\"sessionID\\\":\\\"40\\\",\\\"stockCode\\\":\\\"KR7005930003\\\",\\\"stockSeq\\\":\\\"000379\\\",\\\"transactionProcessingTime\\\":\\\"090645718364\\\",\\\"upDown\\\":\\\"2\\\",\\\"gap\\\":\\\"00000000500\\\",\\\"tradePrice\\\":\\\"00000065800\\\",\\\"tradeVolume\\\":\\\"0000000014\\\",\\\"openPrice\\\":\\\"00000065900\\\",\\\"highPrice\\\":\\\"00000066000\\\",\\\"lowPrice\\\":\\\"00000065600\\\",\\\"accmTradeVolume\\\":\\\"000002214961\\\",\\\"accmTradeAmount\\\":\\\"000000145771622700.000\\\",\\\"lastAskBidClassCode\\\":\\\"2\\\",\\\"LPHoldingVolume\\\":\\\"000000000000000\\\",\\\"askOneQuote\\\":\\\"00000065800\\\",\\\"bidOneQuote\\\":\\\"00000065700\\\",\\\"endText\\\":\\\"NULL\\\"}\",\"result\":\"SUCC\"}"
5) "{\"proto\":\"response/json\",\"sender\":\"11270016379127001\",\"id\":null,\"ts\":\"[2024-09-30 08:31:04.596]\",\"method\":\"realkrx\",\"query\":\"A301S\",\"data\":\"{\\\"dataClass\\\":\\\"A3\\\",\\\"infoMarketClass\\\":\\\"01S\\\",\\\"distributeStockIndex\\\":\\\" \\\",\\\"boardID\\\":\\\"G1\\\",\\\"sessionID\\\":\\\"40\\\",\\\"stockCode\\\":\\\"KR7005930003\\\",\\\"stockSeq\\\":\\\"000379\\\",\\\"transactionProcessingTime\\\":\\\"091029485349\\\",\\\"upDown\\\":\\\"2\\\",\\\"gap\\\":\\\"00000000200\\\",\\\"tradePrice\\\":\\\"00000065500\\\",\\\"tradeVolume\\\":\\\"0000000005\\\",\\\"openPrice\\\":\\\"00000065900\\\",\\\"highPrice\\\":\\\"00000066000\\\",\\\"lowPrice\\\":\\\"00000065400\\\",\\\"accmTradeVolume\\\":\\\"000002682855\\\",\\\"accmTradeAmount\\\":\\\"000000176459947500.000\\\",\\\"lastAskBidClassCode\\\":\\\"1\\\",\\\"LPHoldingVolume\\\":\\\"000000000000000\\\",\\\"askOneQuote\\\":\\\"00000065600\\\",\\\"bidOneQuote\\\":\\\"00000065500\\\",\\\"endText\\\":\\\"NULL\\\"}\",\"result\":\"SUCC\"}"
6) "{\"proto\":\"response/json\",\"sender\":\"11270016379127001\",\"id\":null,\"ts\":\"[2024-09-30 08:31:04.650]\",\"method\":\"realkrx\",\"query\":\"A301S\",\"data\":\"{\\\"dataClass\\\":\\\"A3\\\",\\\"infoMarketClass\\\":\\\"01S\\\",\\\"distributeStockIndex\\\":\\\" \\\",\\\"boardID\\\":\\\"G1\\\",\\\"sessionID\\\":\\\"40\\\",\\\"stockCode\\\":\\\"KR7005930003\\\",\\\"stockSeq\\\":\\\"000379\\\",\\\"transactionProcessingTime\\\":\\\"091358828653\\\",\\\"upDown\\\":\\\"2\\\",\\\"gap\\\":\\\"00000000200\\\",\\\"tradePrice\\\":\\\"00000065500\\\",\\\"tradeVolume\\\":\\\"0000000002\\\",\\\"openPrice\\\":\\\"00000065900\\\",\\\"highPrice\\\":\\\"00000066000\\\",\\\"lowPrice\\\":\\\"00000065400\\\",\\\"accmTradeVolume\\\":\\\"000003115219\\\",\\\"accmTradeAmount\\\":\\\"000000204794064000.000\\\",\\\"lastAskBidClassCode\\\":\\\"1\\\",\\\"LPHoldingVolume\\\":\\\"000000000000000\\\",\\\"askOneQuote\\\":\\\"00000000000\\\",\\\"bidOneQuote\\\":\\\"00000000000\\\",\\\"endText\\\":\\\"NULL\\\"}\",\"result\":\"SUCC\"}"
7) "{\"proto\":\"response/json\",\"sender\":\"11270016379127001\",\"id\":null,\"ts\":\"[2024-09-30 08:31:04.712]\",\"method\":\"realkrx\",\"query\":\"A301S\",\"data\":\"{\\\"dataClass\\\":\\\"A3\\\",\\\"infoMarketClass\\\":\\\"01S\\\",\\\"distributeStockIndex\\\":\\\" \\\",\\\"boardID\\\":\\\"G1\\\",\\\"sessionID\\\":\\\"40\\\",\\\"stockCode\\\":\\\"KR7005930003\\\",\\\"stockSeq\\\":\\\"000379\\\",\\\"transactionProcessingTime\\\":\\\"091825878686\\\",\\\"upDown\\\":\\\"2\\\",\\\"gap\\\":\\\"00000000200\\\",\\\"tradePrice\\\":\\\"00000065500\\\",\\\"tradeVolume\\\":\\\"0000000093\\\",\\\"openPrice\\\":\\\"00000065900\\\",\\\"highPrice\\\":\\\"00000066000\\\",\\\"lowPrice\\\":\\\"00000065400\\\",\\\"accmTradeVolume\\\":\\\"000003385914\\\",\\\"accmTradeAmount\\\":\\\"000000222525294200.000\\\",\\\"lastAskBidClassCode\\\":\\\"1\\\",\\\"LPHoldingVolume\\\":\\\"000000000000000\\\",\\\"askOneQuote\\\":\\\"00000065600\\\",\\\"bidOneQuote\\\":\\\"00000065500\\\",\\\"endText\\\":\\\"NULL\\\"}\",\"result\":\"SUCC\"}"
8) "{\"proto\":\"response/json\",\"sender\":\"11270016379127001\",\"id\":null,\"ts\":\"[2024-09-30 08:31:04.774]\",\"method\":\"realkrx\",\"query\":\"A301S\",\"data\":\"{\\\"dataClass\\\":\\\"A3\\\",\\\"infoMarketClass\\\":\\\"01S\\\",\\\"distributeStockIndex\\\":\\\" \\\",\\\"boardID\\\":\\\"G1\\\",\\\"sessionID\\\":\\\"40\\\",\\\"stockCode\\\":\\\"KR7005930003\\\",\\\"stockSeq\\\":\\\"000379\\\",\\\"transactionProcessingTime\\\":\\\"092352815143\\\",\\\"upDown\\\":\\\"2\\\",\\\"gap\\\":\\\"00000000200\\\",\\\"tradePrice\\\":\\\"00000065500\\\",\\\"tradeVolume\\\":\\\"0000000004\\\",\\\"openPrice\\\":\\\"00000065900\\\",\\\"highPrice\\\":\\\"00000066000\\\",\\\"lowPrice\\\":\\\"00000065400\\\",\\\"accmTradeVolume\\\":\\\"000003808293\\\",\\\"accmTradeAmount\\\":\\\"000000250189888900.000\\\",\\\"lastAskBidClassCode\\\":\\\"1\\\",\\\"LPHoldingVolume\\\":\\\"000000000000000\\\",\\\"askOneQuote\\\":\\\"00000065600\\\",\\\"bidOneQuote\\\":\\\"00000065500\\\",\\\"endText\\\":\\\"NULL\\\"}\",\"result\":\"SUCC\"}"
9) "{\"proto\":\"response/json\",\"sender\":\"11270016379127001\",\"id\":null,\"ts\":\"[2024-09-30 08:31:04.828]\",\"method\":\"realkrx\",\"query\":\"A301S\",\"data\":\"{\\\"dataClass\\\":\\\"A3\\\",\\\"infoMarketClass\\\":\\\"01S\\\",\\\"distributeStockIndex\\\":\\\" \\\",\\\"boardID\\\":\\\"G1\\\",\\\"sessionID\\\":\\\"40\\\",\\\"stockCode\\\":\\\"KR7005930003\\\",\\\"stockSeq\\\":\\\"000379\\\",\\\"transactionProcessingTime\\\":\\\"092833652644\\\",\\\"upDown\\\":\\\"2\\\",\\\"gap\\\":\\\"00000000100\\\",\\\"tradePrice\\\":\\\"00000065400\\\",\\\"tradeVolume\\\":\\\"0000000001\\\",\\\"openPrice\\\":\\\"00000065900\\\",\\\"highPrice\\\":\\\"00000066000\\\",\\\"lowPrice\\\":\\\"00000065400\\\",\\\"accmTradeVolume\\\":\\\"000003989750\\\",\\\"accmTradeAmount\\\":\\\"000000262063533100.000\\\",\\\"lastAskBidClassCode\\\":\\\"1\\\",\\\"LPHoldingVolume\\\":\\\"000000000000000\\\",\\\"askOneQuote\\\":\\\"00000000000\\\",\\\"bidOneQuote\\\":\\\"00000000000\\\",\\\"endText\\\":\\\"NULL\\\"}\",\"result\":\"SUCC\"}"
10) "{\"proto\":\"response/json\",\"sender\":\"11270016379127001\",\"id\":null,\"ts\":\"[2024-09-30 08:31:04.894]\",\"method\":\"realkrx\",\"query\":\"A301S\",\"data\":\"{\\\"dataClass\\\":\\\"A3\\\",\\\"infoMarketClass\\\":\\\"01S\\\",\\\"distributeStockIndex\\\":\\\" \\\",\\\"boardID\\\":\\\"G1\\\",\\\"sessionID\\\":\\\"40\\\",\\\"stockCode\\\":\\\"KR7005930003\\\",\\\"stockSeq\\\":\\\"000379\\\",\\\"transactionProcessingTime\\\":\\\"093141775147\\\",\\\"upDown\\\":\\\"2\\\",\\\"gap\\\":\\\"00000000100\\\",\\\"tradePrice\\\":\\\"00000065400\\\",\\\"tradeVolume\\\":\\\"0000000001\\\",\\\"openPrice\\\":\\\"00000065900\\\",\\\"highPrice\\\":\\\"00000066000\\\",\\\"lowPrice\\\":\\\"00000065300\\\",\\\"accmTradeVolume\\\":\\\"000004124641\\\",\\\"accmTradeAmount\\\":\\\"000000270882461600.000\\\",\\\"lastAskBidClassCode\\\":\\\"2\\\",\\\"LPHoldingVolume\\\":\\\"000000000000000\\\",\\\"askOneQuote\\\":\\\"00000065400\\\",\\\"bidOneQuote\\\":\\\"00000065300\\\",\\\"endText\\\":\\\"NULL\\\"}\",\"result\":\"SUCC\"}"
11) "{\"proto\":\"response/json\",\"sender\":\"11270016379127001\",\"id\":null,\"ts\":\"[2024-09-30 08:31:04.954]\",\"method\":\"realkrx\",\"query\":\"A301S\",\"data\":\"{\\\"dataClass\\\":\\\"A3\\\",\\\"infoMarketClass\\\":\\\"01S\\\",\\\"distributeStockIndex\\\":\\\" \\\",\\\"boardID\\\":\\\"G1\\\",\\\"sessionID\\\":\\\"40\\\",\\\"stockCode\\\":\\\"KR7005930003\\\",\\\"stockSeq\\\":\\\"000379\\\",\\\"transactionProcessingTime\\\":\\\"093441844187\\\",\\\"upDown\\\":\\\"3\\\",\\\"gap\\\":\\\"00000000000\\\",\\\"tradePrice\\\":\\\"00000065300\\\",\\\"tradeVolume\\\":\\\"0000000018\\\",\\\"openPrice\\\":\\\"00000065900\\\",\\\"highPrice\\\":\\\"00000066000\\\",\\\"lowPrice\\\":\\\"00000065300\\\",\\\"accmTradeVolume\\\":\\\"000004150310\\\",\\\"accmTradeAmount\\\":\\\"000000272560309900.000\\\",\\\"lastAskBidClassCode\\\":\\\"1\\\",\\\"LPHoldingVolume\\\":\\\"000000000000000\\\",\\\"askOneQuote\\\":\\\"00000065400\\\",\\\"bidOneQuote\\\":\\\"00000065300\\\",\\\"endText\\\":\\\"NULL\\\"}\",\"result\":\"SUCC\"}"
12) "{\"proto\":\"response/json\",\"sender\":\"11270016379127001\",\"id\":null,\"ts\":\"[2024-09-30 08:31:05.021]\",\"method\":\"realkrx\",\"query\":\"A301S\",\"data\":\"{\\\"dataClass\\\":\\\"A3\\\",\\\"infoMarketClass\\\":\\\"01S\\\",\\\"distributeStockIndex\\\":\\\" \\\",\\\"boardID\\\":\\\"G1\\\",\\\"sessionID\\\":\\\"40\\\",\\\"stockCode\\\":\\\"KR7005930003\\\",\\\"stockSeq\\\":\\\"000379\\\",\\\"transactionProcessingTime\\\":\\\"093902993906\\\",\\\"upDown\\\":\\\"3\\\",\\\"gap\\\":\\\"00000000000\\\",\\\"tradePrice\\\":\\\"00000065300\\\",\\\"tradeVolume\\\":\\\"0000000003\\\",\\\"openPrice\\\":\\\"00000065900\\\",\\\"highPrice\\\":\\\"00000066000\\\",\\\"lowPrice\\\":\\\"00000065300\\\",\\\"accmTradeVolume\\\":\\\"000004207435\\\",\\\"accmTradeAmount\\\":\\\"000000276294077300.000\\\",\\\"lastAskBidClassCode\\\":\\\"1\\\",\\\"LPHoldingVolume\\\":\\\"000000000000000\\\",\\\"askOneQuote\\\":\\\"00000065400\\\",\\\"bidOneQuote\\\":\\\"00000065300\\\",\\\"endText\\\":\\\"NULL\\\"}\",\"result\":\"SUCC\"}"