You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
利用できるコネクションと使ってるコネクション _available_connections で利用できるコネクションのlist _created_connections で今まで作ったコネクションの総数 _in_use_connection で今使っているコネクションのset get_connectionメソッドで_available_connectionsから利用できるコネクションがあればpopでとってくる。ないならmake_connectionで新規コネクションをつくり、_in_use_connectionにaddする releaseメソッドでコネクションをpookに返却する。(_in_use_connectionからremoveし、_available_connectionsとappend) disconnectでpoolの開放 実際でどうつかわれるかは StrictRedisクラス
Warning This project is now deprecated. The code has a new home as a part of walrus, a set of Python utilities for working with Redis. autocompletion with redis based on: http://antirez.com/post/autocomplete-with-redis.html http://stackoverflow.com/questions/1958005/redis-autocomplete/1966188 redis-completion is capable of storing a large number of phrases and quickly searching them for matches. R
Location stuff is cool! So let’s build a system that takes a person’s latitude and longitude, and returns the location of someone nearby. Tools I’m going to use Redis to store the locations of people connecting, and the python-geohash library, but more on that later. Redis is well suited to the task of being an index/store for matchmaking, as the data is usually transient, and therefore badly suit
I recently rewrote my personal site using flask and peewee, breaking a good amount of stuff in the process. I was trying to track down the errors by tailing log files, but that didn't help alert me to new errors that someone visiting the site might stir up. I thought about setting up error emails a-la django, which is a tried and true method...but then I happened on a different approach. I won't s
tl;dr When writing tests, mock out a subsystem if and only if it’s prohibitive to test against the real thing. !tl;dr Our product uses Redis. It’s an awesome technology. We’ve avoided needing Redis in our unit tests. But when I added a product feature that made deep use of Redis, I wrote its unit tests to use it, and changed our development fabfile to instantiate a test Redis server when running t
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く