For a python library for caching function results, the strongest matches are grantjenks/python-diskcache (This library provides a robust disk-backed caching solution with), tkem/cachetools (This library provides a collection of memoizing decorators and) and django-cache-machine/django-cache-machine (This library provides automatic caching for Django models with). bbangert/beaker and lericson/pylibmc round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
我们为您精选了匹配 “best python caching libraries” 的开源 GitHub 仓库。结果按与您查询的相关性进行排名 — 您可以使用下方筛选器缩小范围,或通过 AI 进行优化。
This project is a disk-backed key-value store and persistent data structure library for Python. It provides a mechanism for persisting mappings, sets, and queues to the local filesystem to bypass memory limitations and cache expensive function results across threads and processes. The system serves as a cross-process synchronization tool, offering distributed locks, semaphores, and barriers to coordinate shared resource access. It implements advanced caching strategies such as probabilistic stampede prevention, sharded data partitioning to increase throughput, and least-recently-used eviction
This library provides a robust disk-backed caching solution with decorator support, TTL expiration, and persistent storage, making it a highly effective tool for managing frequently accessed data in Python applications.
Extensible memoizing collections and decorators
This library provides a collection of memoizing decorators and in-memory caching structures that directly address the need for performance optimization through data caching, though it lacks built-in support for persistent or distributed storage.
Automatic caching and invalidation for Django models through the ORM.
This library provides automatic caching for Django models with support for in-memory and persistent backends, though it is specifically tailored for ORM integration rather than general-purpose application caching.
Cache and Session Library
Beaker is a mature Python library that provides both in-memory and persistent caching along with session management, supporting decorators and TTL expiration for performance optimization.
A Python wrapper around the libmemcached interface from TangentOrg.
This library provides a high-performance Python interface for memcached, offering robust in-memory and distributed caching capabilities with support for TTL expiration.
johnny cache django caching framework
This is a Django-specific caching framework that provides transparent, automated caching for database queries, though it is more specialized than a general-purpose Python caching library.
This library provides a comprehensive caching solution for Python with built-in support for asynchronous operations, decorator-based usage, and multiple backends including in-memory and persistent storage.
Cachier is a Python caching library that provides decorator-based persistent caching with support for TTL expiration and multiple backends, making it a solid choice for improving application performance.