Redis 개념
-
Redis 데이터 구조Redis 2024. 2. 20. 16:26
String String 타입의 데이터 구조, 텍스트, 직렬화된 객체 등을 저장하는 용도로 자주 사용됨. SET Time complexity: O(1) Description: 지정된 key의 저장된 문자열을 저장 SET key value GET Time complexity: O(1) Description: 지정된 key의 저장된 문자열을 조회 GET key SET, GET 실습 List 데이터 삽입 순서에 따라 정렬된 문자열 컬렉션의 형태 LRANGE Time complexity: O(S + N) - S는 (HEAD or TAIL)에서의 distance, N은 지정된 요소 수 Description: List에서 지정된 범위의 요소를 반환 LRANGE key start stop LPUSH Time comp..