Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

redis based cache

Project description

This module provides simple redis based persitent cache decorators. If redis is not availble, they will simply do nothing.

There are two decorators: @cached for functions and @async_cached for coroutines:

import asyncio
import aiohttp
from rediscache import async_cached

@async_cached('test', ttl=100, port=6379)
def test(url):
    data = yield from aiohttp.get('')
    return data

Project details

Release history Release notifications

This version
History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
rediscache-0.0.1.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None Dec 22, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page