還蠻多的,紀錄一下
django redis backend from Eric Florenzano
https://gist.github.com/668791
另一個
http://bitbucket.org/dpaccoud/django-redis-sessions/src
Posts for: #Redis
deployment with daemontools
daemontools 最早由 D. J. Bernstein 開發,真是好東西,這麼早就做出來了,這麼久了,還是這麼好用
Pylons deployment with daemontools
Deploying a Django Site using FastCGI
Redis Speed
http://www.digitaldragoon.com/blog/testing-speed-redis-py/
have pget and pset inside, I change to this
import cPickle as pickle
import zlib
import new
####################################
# gzip header
gzip_header = zlib.compress(’’)[:2]
####################################
# CUSTOM COMMANDS for Redis
####################################
def _pset(self, name, object, compress=False):
""" pickle set for redis client, with compress flag
“”"
pobj = pickle.dumps(object, pickle.HIGHEST_PROTOCOL)
if compress:
pobj = zlib.compress(pobj)
self.set(name, pobj)
def _pget(self, name):
""" pickle get for redis client, automatic to check compress flag
“”"
pobj = self.get(name)
if pobj is None: # No value for this key, let’s go home :-(
return None
else:
if pobj[:2] == gzip_header:
# it compressed data
pobj = zlib.decompress(pobj)
load_object= pickle.loads(pobj)
return load_object
redis.Redis.pset = new.instancemethod(_pset, None, redis.Redis)
redis.Redis.pget = new.instancemethod(_pget, None, redis.Redis)
Play with Redis
A key value NOSQL DB
develop in c lang
貫C 派的最愛,各種語言的 client 連結函式都有,需要有很高很高的 server side 效能的人,請關注一下
http://github.com/antirez/redis
Python Client http://github.com/andymccurdy/redis-py