Database/Redis

Database/Redis

[Redis] Ubuntu 18.04 Redis 설치

Document : https://redis.io/topics/quickstart Redis Quick Start – Redis *Redis Quick Start This is a quick start document that targets people without prior experience with Redis. Reading this document will help you: Download and compile Redis to start hacking. Use redis-cli to access the server. Use Redis from your application redis.io $ sudo apt-get install build-essential -y Linux에서 make, gcc,..

Database/Redis

[Redis] Redis-cli 필기 노트

Server가 절전모드로 전환될 경우 Redis는 전부 사라진다. == Redis Redis In-memory 특성으로 접근 속도가 빠르다. Key-Value, 자료 구조 데이터를 유지할 수 있음 Pub/Sub 서버로 많이 사용 단점 : 데이터가 정확하게 유지됨을 보장하지 않음 $ redis-cli Redis를 CLI 형식으로 실행할 때 사용한다. 6379> shutdown Redis Server를 중지한다. String 6379> set key Hello 6379> get key key-Value 형식으로 key라는 이름에 Hello를 저장한다. key-Value 형식으로 key에 들어있는 값을 출력한다. Object 6379> hmset key field value [field value ...] e..

Database/Redis

[Redis] Node.js Redis, GeoRedis Module

const redis = require('redis') require('dotenv').config(); const client = redis.createClient({ url: `redis://${process.env.REDIS_HOST}:${process.env.REDIS_PORT}`, // EX) 'redis://localhost:6379' }) const geo = require('georedis').initialize(client) // String client.set('name', 'MyName') client.get('name', (error, reply) => { console.log(rep..

커스텀 리
'Database/Redis' 카테고리의 글 목록