fastapi-cache
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: fastapi-cache | ||
| Version: 0.0.2 | ||
| Version: 0.0.3 | ||
| Summary: FastAPI simple cache | ||
@@ -10,2 +10,8 @@ Home-page: https://github.com/comeuplater/fastapi_cache | ||
| [](https://app.codacy.com/manual/ivan.sushkov/fastapi_cache?utm_source=github.com&utm_medium=referral&utm_content=comeuplater/fastapi_cache&utm_campaign=Badge_Grade_Dashboard) | ||
| [](https://opensource.org/licenses/MIT) | ||
| [](https://pypi.python.org/pypi/fastapi-cache/) | ||
| [](https://pepy.tech/project/fastapi-cache) | ||
| [](https://travis-ci.com/comeuplater/fastapi_cache) | ||
| Implements simple lightweight cache system as dependencies in FastAPI. | ||
@@ -16,3 +22,3 @@ | ||
| ```sh | ||
| $ pip install FastAPI-Cache | ||
| pip install fastapi-cache | ||
| ``` | ||
@@ -58,6 +64,6 @@ | ||
| * [ ] Add tests | ||
| * [ ] Add registry decorator | ||
| * [ ] Add tests | ||
| * [ ] Add registry decorator | ||
| Keywords: redis,aioredis,asyncio,fastapi,starlette,cache | ||
| Platform: UNKNOWN | ||
| Description-Content-Type: text/markdown |
@@ -8,4 +8,6 @@ from typing import Union | ||
| class InMemoryCacheBackend(BaseCacheBackend): | ||
| _cache: dict = {} | ||
| def __init__(self): | ||
| self._cache: dict = {} | ||
@@ -51,3 +53,3 @@ async def add( | ||
| async def close(self) -> None: | ||
| async def close(self) -> None: # pragma: no cover | ||
| return None |
@@ -50,3 +50,3 @@ from typing import Union | ||
| if in_cache is None: | ||
| if in_cache is not None: | ||
| return False | ||
@@ -53,0 +53,0 @@ |
@@ -1,4 +0,4 @@ | ||
| VERSION = (0, 0, 2) | ||
| VERSION = (0, 0, 3) | ||
| __author__ = 'Ivan Sushkov <comeuplater>' | ||
| __version__ = '.'.join(str(x) for x in VERSION) |
+10
-4
| Metadata-Version: 2.1 | ||
| Name: fastapi-cache | ||
| Version: 0.0.2 | ||
| Version: 0.0.3 | ||
| Summary: FastAPI simple cache | ||
@@ -10,2 +10,8 @@ Home-page: https://github.com/comeuplater/fastapi_cache | ||
| [](https://app.codacy.com/manual/ivan.sushkov/fastapi_cache?utm_source=github.com&utm_medium=referral&utm_content=comeuplater/fastapi_cache&utm_campaign=Badge_Grade_Dashboard) | ||
| [](https://opensource.org/licenses/MIT) | ||
| [](https://pypi.python.org/pypi/fastapi-cache/) | ||
| [](https://pepy.tech/project/fastapi-cache) | ||
| [](https://travis-ci.com/comeuplater/fastapi_cache) | ||
| Implements simple lightweight cache system as dependencies in FastAPI. | ||
@@ -16,3 +22,3 @@ | ||
| ```sh | ||
| $ pip install FastAPI-Cache | ||
| pip install fastapi-cache | ||
| ``` | ||
@@ -58,6 +64,6 @@ | ||
| * [ ] Add tests | ||
| * [ ] Add registry decorator | ||
| * [ ] Add tests | ||
| * [ ] Add registry decorator | ||
| Keywords: redis,aioredis,asyncio,fastapi,starlette,cache | ||
| Platform: UNKNOWN | ||
| Description-Content-Type: text/markdown |
+9
-3
| # FastAPI Cache | ||
| [](https://app.codacy.com/manual/ivan.sushkov/fastapi_cache?utm_source=github.com&utm_medium=referral&utm_content=comeuplater/fastapi_cache&utm_campaign=Badge_Grade_Dashboard) | ||
| [](https://opensource.org/licenses/MIT) | ||
| [](https://pypi.python.org/pypi/fastapi-cache/) | ||
| [](https://pepy.tech/project/fastapi-cache) | ||
| [](https://travis-ci.com/comeuplater/fastapi_cache) | ||
| Implements simple lightweight cache system as dependencies in FastAPI. | ||
@@ -8,3 +14,3 @@ | ||
| ```sh | ||
| $ pip install FastAPI-Cache | ||
| pip install fastapi-cache | ||
| ``` | ||
@@ -50,3 +56,3 @@ | ||
| * [ ] Add tests | ||
| * [ ] Add registry decorator | ||
| * [ ] Add tests | ||
| * [ ] Add registry decorator |
+3
-3
@@ -13,5 +13,5 @@ from os.path import dirname, join | ||
| url='https://github.com/comeuplater/fastapi_cache', | ||
| packages=find_packages(), | ||
| packages=find_packages(exclude=('tests',)), | ||
| long_description=open(join(dirname(__file__), 'README.md')).read(), | ||
| long_description_content_type="text/markdown", | ||
| long_description_content_type='text/markdown', | ||
| license='MIT License', | ||
@@ -24,2 +24,2 @@ keywords=[ | ||
| ], | ||
| ) | ||
| ) |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
13090
22.22%172
1.18%