Search

Redis 명령어

생성자
생성 일시
2023/09/03 04:49
url
태그
서버 / 배포
2 more properties

Mac Redis 설치와 실행

$ brew install redis $ brew services start redis $ brew services stop redis $ brew services restart redis $ redis-cli
Bash
복사

Redis-cli 실행

$ sudo redis-cli
Bash
복사

데이터

# 데이터 찾기 $ get [key]
Bash
복사

키의 남은 유효기간 찾기

$ TTL [key] # -1 은 유효기간 설정이 안되어 있다는 뜻.
Bash
복사