Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

In Memory Cache Laravel Package

beste/in-memory-cache

PSR-6 compliant in-memory cache for PHP—ideal as a lightweight default cache and for fast, predictable tests. Supports standard CacheItemPoolInterface behavior and optional PSR-20 clocks (e.g., frozen clocks) for time-based expiry testing.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables rapid development of cache-dependent features without external dependencies, reducing setup time and infrastructure costs during early stages.
  • Provides a consistent PSR-6 interface for testing, ensuring code works with any PSR-6 implementation without rewriting logic.
  • Serves as a temporary fallback during development when production cache systems aren't configured, allowing teams to focus on business logic first.
  • Supports deterministic testing via custom clock implementations (e.g., frozen time), critical for validating cache expiration logic in unit tests.

When to Consider This Package

  • ✅ Ideal for local development, unit tests, and CI pipelines where speed and simplicity matter.
  • ✅ When building new features that abstract cache usage via PSR-6 but haven't finalized production cache infrastructure.
  • ❌ Avoid for production environments requiring persistence, high availability, or distributed caching (e.g., Redis, Memcached).
  • ❌ Not suitable for applications needing multi-process/multi-server cache sharing due to in-memory, process-specific nature.
  • ❌ If your project requires advanced features like cache eviction policies beyond TTL or large-scale data storage.

How to Pitch It (Stakeholders)

  • Executives: "This package eliminates the need for external caching infrastructure during development and testing phases, saving costs and accelerating time-to-market. By using a standards-compliant in-memory cache, our team can build and validate cache-dependent features faster without relying on complex production systems, ensuring smoother transitions to scalable solutions later."
  • Engineering: "A lightweight, PSR-6 compliant in-memory cache that requires zero configuration. Perfect for mocking cache behavior in tests—supports TTL via PSR-20 clock for deterministic time-based validation. Integrates seamlessly with existing codebases, reducing test setup time and avoiding external dependencies like Redis during local development."
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4