/async-cache

A caching solution for asyncio

Primary LanguagePythonMIT LicenseMIT

async-cache

info:A caching solution for asyncio
https://travis-ci.org/iamsinghrajat/async-cache.svg?branch=master

Installation

pip install async-cache

Basic Usage

from cache import AsyncLRU

@AsyncLRU(maxsize=128)
async def func(*args, **kwargs):
    pass

Supports primitive as well as non-primitive function parameter.

Currently only LRU cache is supported.