Metadata-Version: 2.1
Name: async-cached
Version: 3.11.1
Summary: Decorator to cache async function results
Home-page: https://github.com/aiocoro/async-cached
Author: aiocoro
Author-email: aiocoro@protonmail.ch
License: UNKNOWN
Description: # Caching decorator for async functions
        
        This is a replacement for `@cached()` decorator from `cachetools`. `cachetools` does not support async at the time of writing.
        
        
        # Installation
        
        ```
            pip install async-cached
        ```
        
        
        # Example
        
        ```
            from cachetools import LRUCache
            from asynccached import asynccached
        
            
            _cache = LRUCache(maxsize=1)
        
        
            @asynccached(cache=_cache, key=lambda arg: arg)
            async def func(arg):
                pass
        
        ```
        
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
