{"id":19185951,"url":"https://github.com/ma-pony/asyncio-ttl-cache","last_synced_at":"2026-06-22T01:30:15.150Z","repository":{"id":39589634,"uuid":"507083257","full_name":"ma-pony/asyncio-ttl-cache","owner":"ma-pony","description":"async ttl cache","archived":false,"fork":false,"pushed_at":"2022-06-27T19:37:19.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T12:02:40.831Z","etag":null,"topics":["asyncio","cache","python3","ttl-cache"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ma-pony.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-24T16:53:31.000Z","updated_at":"2022-06-24T17:34:23.000Z","dependencies_parsed_at":"2022-09-20T06:01:41.812Z","dependency_job_id":null,"html_url":"https://github.com/ma-pony/asyncio-ttl-cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ma-pony%2Fasyncio-ttl-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ma-pony%2Fasyncio-ttl-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ma-pony%2Fasyncio-ttl-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ma-pony%2Fasyncio-ttl-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ma-pony","download_url":"https://codeload.github.com/ma-pony/asyncio-ttl-cache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240261499,"owners_count":19773474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncio","cache","python3","ttl-cache"],"created_at":"2024-11-09T11:12:34.892Z","updated_at":"2026-06-22T01:30:15.087Z","avatar_url":"https://github.com/ma-pony.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"一个异步函数的带有 ttl 缓存功能的装饰器\n\n## Install \n```shell\npip install asyncio-ttl-cache\n```\n\n## Example\n```python\nimport asyncio\nfrom asyncio_ttl_cache import ttl_cache\n\n\n@ttl_cache(ttl=3)\nasync def sum(a: int, b: int) -\u003e int:\n    await asyncio.sleep(1)\n    return a + b\n\nif __name__ == '__main__':\n    asyncio.run(sum(1, 2))\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fma-pony%2Fasyncio-ttl-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fma-pony%2Fasyncio-ttl-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fma-pony%2Fasyncio-ttl-cache/lists"}