Download the PHP package cache/chain-adapter without Composer

On this page you can find all versions of the php package cache/chain-adapter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package chain-adapter

PSR-6 and PSR-16 cache pool chain

Latest Stable Version Coverage

This package combines multiple PHP Cache pools into one pool. CachePoolChain implements PSR-6 and PSR-16.

Reads use the first available value. Writes update each configured pool.

Installation

Usage

Each pool in the chain must implement Cache\Adapter\Common\PhpCachePool. This keeps cache items transferable while the chain backfills earlier pools. Wrap the completed chain with other PSR-6 decorators instead of adding generic or decorated pools as chain members.

A key must be accepted by every pool in the chain. The chain checks each member before returning a higher-priority hit or starting a write or delete, which prevents partial mutations when one backend has narrower key rules.

Backfills preserve the cached value, expiration, and stored tags. Tag invalidation therefore removes copies from every tier.

Fallback behavior

By default, the chain throws exceptions from a pool. Set skip_on_failure to remove the failed pool and continue the operation.

Install the optional no-op pool when failures must become cache misses:

The chain removes the failed pool for the life of that CachePoolChain instance. A configured logger receives a warning with the exception.

Raw exceptions from backend operations use the same fallback. Invalid cache keys always throw and never remove a pool.

If every member throws before one completes the operation, the chain throws NoPoolAvailableException. skip_on_failure does not convert a fully unavailable chain into a miss or false result.

Add VoidCachePool last when cache failures must become misses. Writes still run against every active pool, including VoidCachePool.

The chain cannot catch an exception thrown before the pool reaches the chain constructor. Delay backend connections until a cache operation when possible.

Version 2.1 supports cache/adapter-common 2 and 3. Follow each member adapter's upgrade steps before mixing major versions in a chain.

Contributing

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


All versions of chain-adapter with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
cache/adapter-common Version ^2.0 || ^3.0
cache/simple-cache-bridge Version ^2.0
cache/tag-interop Version ^2.0
psr/cache Version ^3.0
psr/log Version ^3.0
psr/simple-cache Version ^2.0 || ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cache/chain-adapter contains the following files

Loading the files please wait ...