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:
parent
afe390d407
commit
1f89b15792
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user