A PHP caching library that speeds up code by storing results of expensive operations like database queries and API calls.
Stash is a PHP caching library designed to accelerate applications by caching the results of time-consuming operations, such as database queries or external API calls. It helps improve performance by storing and retrieving data from various backend systems, reducing the need to repeatedly execute expensive functions.
PHP developers building applications that require performance optimization through caching, particularly those using frameworks like Symfony or needing flexible backend support.
Developers choose Stash for its clean abstraction over multiple caching backends, support for composite multi-tiered drivers, and built-in features like session handling and Symfony integration, offering simplicity and flexibility in cache management.
The place to keep your cache.
Supports FileSystem, SQLite, APC, Memcached, Redis, and Ephemeral drivers, allowing seamless integration with various caching systems as listed in the README.
The Composite Driver enables multi-tiered caching by combining different backends, optimizing for both speed and persistence based on application needs.
Uses slash-separated keys with stacks for grouping related items, facilitating easy bulk operations and maintenance, as highlighted in the core concepts.
Offers a dedicated bundle for Symfony, making it easy to use Stash as a service and session handler within Symfony projects, reducing setup effort.
The library is still pre-version 1.0, so minor updates may include breaking changes that require manual review, as cautioned in the Composer installation notes.
Setting up drivers and pools requires explicit code, which can be complex and time-consuming compared to framework-native caching solutions.
Lacks built-in support for cache tagging or sophisticated invalidation strategies beyond key-based stacks, which may hinder complex cache management.
Doctrine Cache component
CLI App and library to manage apc & opcache.
Popular PHP library for serialized execution of critical code in concurrent situations
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.