python - template - In Django, how to clear all the memcached keys and values?




python-memcached (2)

And an one-liner from console:

echo "from django.core.cache import cache; cache._cache.flush_all()" | ./manage.py shell [--settings=myapp.settings_live]

I don't want to restart the memcached server!






memcached