Skip to content
Browse files

add option to use memcached local without sasl

  • Loading branch information...
1 parent a4bd0f3 commit 1ba73004b3f5823588bb67986c16e95bfb62db6c @forgingdestiny forgingdestiny committed Aug 30, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 memcacheify.py
View
4 memcacheify.py
@@ -56,6 +56,10 @@ def memcacheify(timeout=500):
},
'TIMEOUT': timeout,
}
+ elif environ.get('MEMCACHEIFY_USE_LOCAL', False):
+ caches['default'] = {
+ 'BACKEND': 'django_pylibmc.memcached.PyLibMCCache',
+ }
else:
caches['default'] = {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',

0 comments on commit 1ba7300

Please sign in to comment.
Something went wrong with that request. Please try again.