Python Cache Libraries

Cache libraries for Python

GitHub Star Comparison

Python Cache Libraries GitHub Star Comparison
NoNameGitHub StarsDescriptionTrendLicenseTypeOfficial Site
1Django Cache⭐ 85.5kComprehensive caching system built into Django framework. Supports multiple cache backendsWidely used as standard cache solution for Django projects in 2025BSDWeb Framework CacheOfficial
2Redis-py⭐ 13.3kMost popular official Redis client for Python. Provides high-performance distributed caching solution with rich features and RESP3 supportContinues growing in 2025 as the standard library for Redis distributed caching. Expanding adoption in large-scale applicationsMITRedis ClientOfficial
3DiskCache⭐ 2.6kPure-Python disk-based cache library faster than Redis and Memcached. Supports persistence and GB-sized data storageRising attention in 2025. Increasingly chosen for applications requiring persistent caching of large datasetsApache-2.0Persistent CacheOfficial
4Cachetools⭐ 2.6kLightweight in-memory caching library. Supports various eviction strategies like LRU, LFU, TTL with function decoratorsPopular in small to medium applications in 2025. Continues to be chosen for its simplicity and rich eviction strategiesMITMemory CacheOfficial
5Beaker⭐ 537Legacy Python caching library. Supports various backends but migration to dogpile.cache is now recommendedLegacy status in 2025. dogpile.cache recommended for new development, usage decliningBSDLegacy CacheOfficial
6Python-memcached⭐ 467Python client for Memcached. Provides access to simple and fast distributed caching systemStable demand as traditional caching solution in 2025. Continued use in legacy systemsPSFMemcached ClientOfficial
7Dogpile.cache⭐ 281Advanced function result caching library. Successor to Beaker with excellent concurrency control and stampede protectionMaintains stable popularity in 2025. Steady adoption in enterprise applicationsMITMemoization CacheOfficial