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

Array Adapter Laravel Package

cache/array-adapter

PSR-6 cache pool implemented with an in-memory PHP array. Zero configuration: just instantiate ArrayCachePool for fast, ephemeral caching in tests or single-request use. Part of the PHP Cache ecosystem with shared docs and optional features info.

View on GitHub
Deep Wiki
Context7

Array PSR-6 cache pool

Latest Stable Version Coverage Software License

This package provides in-memory PSR-6 and PSR-16 cache implementations. The pool supports tags and hierarchical keys.

Values live only for the current PHP process. This adapter works well in tests and short-lived scripts.

Installation

composer require cache/array-adapter:^3.0

Usage

use Cache\Adapter\PHPArray\ArrayCachePool;

$pool = new ArrayCachePool();

Limit stored items

Pass a positive maximum item count as the first constructor argument. The default null value keeps every item for the process lifetime.

$pool = new ArrayCachePool(1_000);

When the pool reaches the limit, saving a new key removes the key in the next storage slot. Updating an existing key keeps its slot.

Upgrading to version 3

Version 3 stores a generation snapshot with each tagged item and a separate marker for each tag. Array caches are process-local, so new workers start with an empty cache.

Contributing

Send pull requests to the main repository. Report issues on the GitHub issue tracker.

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.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle