redis pipelining

Pipelining redis pipelining 레디스의 여러 명령어를 한번에 수행할 수 있도록 해주는 기능 Round-Trip Time(RTT)를 최소화 from redis import Redis from time import time c = Redis() def non_pipeline(): before = time() for key in range(100000): c.set(key, 1, ex=10) print('Not use pipelining = {}'.format(time() - before)) def use_pipeline(): before = time() pipe = c.pipeline() for key in range(100000): pipe.set(key, 1, ex=10) pipe.e..
larcane
'redis pipelining' 태그의 글 목록