{"repo":"devbijay/Fast-Cache","free":true,"listed":false,"github":"https://github.com/devbijay/Fast-Cache","clone":"git clone https://github.com/devbijay/Fast-Cache.git","description":"FastAPI-Cachekit is a high-speed caching library for FastAPI, offering easy async and sync cache integration to boost your API’s performance with minimal setup.","language":"Python","stars":10,"topics":["backend","cache","cache-storage","caching-library","dynamodb","mongodb","postgresql","redis-cache"],"license":"MIT","category":"databases-storage","readme_excerpt":"fastapi-cachekit A high-performance, flexible caching solution for FastAPI applications. fastapi-cachekit supports both synchronous and asynchronous operations with a clean API and multiple backend options. Features - ✅ Full async/sync support for all operations - ✅ Multiple backend Support So you can use the same tech stack as your app - ✅ Function result caching with decorator syntax - ✅ FastAPI dependency injection support - ✅ Namespace support for isolating cache entries - ✅ Customizable key generation - ✅ Type hinting throughout the codebase - ✅ Expiration time support (seconds or timedelta) 📦 Backends & Sync/Async Support Backend Sync API Async API Install Extra -------------------- :--------: :---------: --------------- InMemoryBackend ✅ ✅ built-in RedisBackend ✅ ✅ redis PostgresBackend ✅ ✅ postgres MemcachedBackend ✅ ✅ memcached MongoDB ✅ ✅ mongodb FireStore ✅ ✅ firestore DynamoDBBackend ✅ ✅ dynamodb --- 🛠️ Installation Base (in-memory only): With Redis: With Postgres: With Memcached: With MongoDB: With FireStore: With DynamoDB: All backends: Quick Start Now You Can use the cache from other Sub Routes by importing from Detailed Usage Initializing the Cache Before using the cache, you need to initialize it with a backend: Method1: Caching a Function Result Using A Cache Decorator The @cache.cached() decorator is the simplest way to cache function results: Method 2: Using Via Dependency Injection You can access the cache backend directly for more control: Advanced: Im","default_branch":null,"files":null,"tree":[],"storefront":"/r/devbijay","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/devbijay/Fast-Cache/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}