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
복사