1 Repo
Retrieval patterns that execute a provided callback to recompute and store a value if the cache key is missing.
Distinct from Cache Value Retrievals: Focuses on the compute-on-miss pattern, whereas Cache Value Retrievals is just about fetching existing values.
Explore 1 awesome GitHub repository matching data & databases · Callback-Based Retrieval. Refine with filters or upvote what's useful.
This is a PHP library providing standardized interfaces for caching data through the PSR-6 and PSR-16 specifications. It functions as a cache pool manager and distributed cache adapter, allowing applications to organize key-value pairs into logical repositories and namespaces. The project includes a dedicated cache stampede prevention tool that protects systems from CPU spikes during value expiration. This is achieved through locking mechanisms for concurrent requests and probabilistic early expiration. The library supports object serialization with optional encryption and compression to tra
Retrieves a cached item by key or executes a callback to compute and store the value if it is missing.