Python

python redis

Kyle79 2019. 8. 14. 10:38

https://jupiny.com/2018/02/27/caching-using-redis-on-django/

 

Django에서 Redis를 이용해 Caching하기

프로젝트 생성하기 Model 1개와 View 1개를 가지고 있는 아주 기본적인 Django 프로젝트를 만들어보았다.(보다 빠르게 Django 프로젝트를 생성하고 싶다면 django-quickstarter 를 이용하자.) # models.py from django.db import models class Post(models.Model): text = models.TextField() def __str__(self): return self.text # vi

jupiny.com

 

 

https://pypi.org/project/redis/

 

redis

Python client for Redis key-value store

pypi.org

 

https://pythontic.com/database/redis/sorted%20set%20-%20add%20and%20remove%20elements

 

Sorted Set in Redis - Add, Remove Elements Using Python And Redis-Py | Pythontic.com

import redis # Create a redis client redisClient = redis.StrictRedis(host='localhost',                                 port=6379,                                 db=0) # Name of the Redis sorted set candidates = "Candidates" redisClient.zadd(candidates,   

pythontic.com

 

https://potensj.tistory.com/101

 

[ Database ] redis info 사용법 (Python 예제)

이번 포스팅에서는 redis info 명령에 대해서 알아보도록 하겠습니다. < redis-cli > info memory < python > - Python redis info 예제 코드 - 메모리 확인 import redis def connect_redis(): try: conn = redi..

potensj.tistory.com

 

 

 

'Python' 카테고리의 다른 글

Python 객체 직렬화/역직렬화  (0) 2019.08.27
BERT  (0) 2019.08.20
Tesseract OCR 4.0 학습  (0) 2019.08.13
Flask - Sqlalchemy  (0) 2019.08.01
Python 과 Kafka, Spark 를 이용한 실시간 분석  (0) 2019.07.23