Caching example (#334)

* Caching example using aiocache

* Caching example using aiocache

* Added aiocache to requirements

* Fixed example with newest aiocache

* Fixed bug in cache example
This commit is contained in:
Manuel Miranda 2017-01-23 17:19:42 +01:00 committed by Eli Uriegas
parent afe390d407
commit 1f89b15792

View File

@ -21,7 +21,7 @@ from aiocache.serializers import JsonSerializer
app = Sanic(__name__) app = Sanic(__name__)
aiocache.settings.set_defaults( aiocache.settings.set_defaults(
cache="aiocache.RedisCache" class_="aiocache.RedisCache"
) )