@h3ravel/cacheFeature Requirementenhancementhelp wantedperformance
Repository metrics
- Stars
- (22 stars)
- PR merge metrics
- (PR metrics pending)
Description
Background: Applications need a unified caching layer to improve performance and reduce redundant computations. Integrating Cacheable (or similar) will provide a consistent API for working with different cache backends like memory, Redis, or database.
Tasks:
- Add Cacheable as dependency.
- Add your implementation to the framework/cache package directory
- Implement
CacheManagerto configure and manage multiple cache stores. - Provide drivers for
memoryandredisout of the box. - Add helpers for common operations:
put,get,forget,remember. - Add support for tagging and TTL (time-to-live).
- Write unit tests for each driver and helper.
- Document cache usage with examples.
Acceptance criteria:
- Developers can configure cache stores in config (
memory,redis, etc.). - Interface mirrors laravel as much as possible, creating the familiar DX while also adding it own unique twists and turns.
Cache.putstores and expires values as expected.Cache.rememberfetches from cache or computes and stores if missing.- Tests validate behavior across drivers.
Difficulty: medium