Skip to content
This repository has been archived by the owner on Nov 17, 2018. It is now read-only.
/ rediscache Public archive

DEPRECATED simple redis based persitent cache

Notifications You must be signed in to change notification settings

xi/rediscache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)
@asyncio.coroutine
def test(url):
    data = yield from aiohttp.get('http://python.org')
    return data

About

DEPRECATED simple redis based persitent cache

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages