Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
switch django-redis-cache to django-redis
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Demah committed Jun 24, 2015
1 parent 7cad24b commit d38ef6a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,23 +165,23 @@ For each TriggerHappy component, define one cache like below
'th_rss':
{
'TIMEOUT': 500,
"BACKEND": "redis_cache.cache.RedisCache",
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "127.0.0.1:6379",
"OPTIONS": {
"DB": 2,
"CLIENT_CLASS": "redis_cache.client.DefaultClient",
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
},
# Twitter Cache
'th_twitter':
{
'TIMEOUT': 500,
"BACKEND": "redis_cache.cache.RedisCache",
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "127.0.0.1:6379",
"OPTIONS": {
"DB": 3,
"CLIENT_CLASS": "redis_cache.client.DefaultClient",
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
},
Expand Down
4 changes: 2 additions & 2 deletions django_th/local_settings_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
CELERYBEAT_SCHEDULE = {
'add-read-data': {
'task': 'django_th.tasks.read_data',
'schedule': crontab(minute='*/27'),
'schedule': crontab(minute='27,54'),
},
'add-publish-data': {
'task': 'django_th.tasks.publish_data',
'schedule': crontab(minute='*/59'),
'schedule': crontab(minute='59'),
},
}

Expand Down
20 changes: 10 additions & 10 deletions django_th/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,55 +212,55 @@
'th_evernote':
{
'TIMEOUT': 500,
"BACKEND": "redis_cache.cache.RedisCache",
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "127.0.0.1:6379",
"OPTIONS": {
"DB": 1,
"CLIENT_CLASS": "redis_cache.client.DefaultClient",
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
},
# Pocket Cache
'th_pocket':
{
'TIMEOUT': 500,
"BACKEND": "redis_cache.cache.RedisCache",
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "127.0.0.1:6379",
"OPTIONS": {
"DB": 2,
"CLIENT_CLASS": "redis_cache.client.DefaultClient",
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
},
# Readablity Cache
'th_readability':
{
'TIMEOUT': 500,
"BACKEND": "redis_cache.cache.RedisCache",
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "127.0.0.1:6379",
"OPTIONS": {
"DB": 6,
"CLIENT_CLASS": "redis_cache.client.DefaultClient",
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
},
# RSS Cache
'th_rss':
{
'TIMEOUT': 500,
"BACKEND": "redis_cache.cache.RedisCache",
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "127.0.0.1:6379",
"OPTIONS": {
"DB": 3,
"CLIENT_CLASS": "redis_cache.client.DefaultClient",
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
},
# Twitter Cache
'th_twitter':
{
'TIMEOUT': 500,
"BACKEND": "redis_cache.cache.RedisCache",
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "127.0.0.1:6379",
"OPTIONS": {
"DB": 4,
"CLIENT_CLASS": "redis_cache.client.DefaultClient",
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
},
}
Expand Down

0 comments on commit d38ef6a

Please sign in to comment.