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

Laravel Blink Laravel Package

spatie/laravel-blink

Request-scoped in-memory cache for Laravel. Use the blink() helper or facade to store and retrieve values for the duration of a single request, with helpers like once(), get/put, wildcard key prefixes, increment, forget/flush, plus ArrayAccess and Countable support.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Optimizing request-level performance by eliminating redundant computations (e.g., repeated database queries, API calls, or complex calculations within a single HTTP request)
  • Choosing a "buy" solution over custom-built memoization logic, reducing engineering effort and maintenance debt
  • Avoiding unnecessary Redis or database dependencies for transient, request-scoped data
  • Prioritizing lightweight performance wins in the roadmap without infrastructure complexity

When to Consider This Package

  • Adopt when: Your app has duplicate work within a single request (e.g., multiple service calls for the same data), you need zero-configuration caching with no external dependencies, and data persistence beyond the request is unnecessary.
  • Look elsewhere when: You need cross-request caching (use Redis/Memcached), distributed system caching (Blink is per-instance), or persistent storage requirements (e.g., session data or user-specific caches across requests).

How to Pitch It (Stakeholders)

  • Executives: "Spatie Blink eliminates redundant computations within each user request, improving response times by up to X% without added infrastructure costs. It’s a zero-maintenance, Laravel-native solution that replaces the need for Redis in request-scoped scenarios, saving both time and operational expenses."
  • Engineering: "This package provides a lightweight, in-memory cache with a simple API for memoizing expensive operations within a single request. It integrates seamlessly with Laravel’s service container, requires no external services, and automatically cleans up after each request—ideal for optimizing performance bottlenecks without adding complexity."
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
milesj/emojibase
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