GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - php-cache/cache at 2.0

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

455 Commits
455 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
script
script
 
 
src
src
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.php-cs-fixer.dist.php
.php-cs-fixer.dist.php
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
norm.sh
norm.sh
 
 
phpstan.neon.dist
phpstan.neon.dist
 
 
phpunit
phpunit
 
 
phpunit.xml.dist
phpunit.xml.dist
 
 

Repository files navigation

PHP Cache

CI Static analysis Software License

PHP Cache provides PSR-6 and PSR-16 cache adapters, decorators, and integration tools. This monorepo is the source for the packages in the PHP Cache organization.

Requirements

Version 2 requires PHP 8.2 or later and psr/cache 3.x. Packages that implement PSR-16 require psr/simple-cache 3.x.

Some adapters also need a PHP extension or client library. Composer lists those requirements for each split package.

Installation

Install the package for the backend you use:

composer require cache/redis-adapter:^2.0

You can install every adapter and library through the monorepo package:

composer require cache/cache:^2.0

See the shared documentation for adapter features and examples.

Upgrading to version 2

Version 2 removes the APC adapter. Use cache/apcu-adapter instead.

APCu entries now use native arrays. Redis and Predis tag indexes now use sets instead of lists. Older workers cannot safely share these stores with version 2 workers.

NamespacedCachePool now encodes namespace bytes outside [A-Za-z0-9_.] and literal lowercase _x sequences. Public keys only encode structural | and ! bytes and literal lowercase _x sequences. Clear affected namespaced caches before an upgrade or rollback when these transformed values are present.

Custom adapters extending AbstractCachePool must add the PHP 8 and PSR-3 method signatures used by version 2. The Filesystem adapter now supports Flysystem 2 and 3, the Illuminate adapter supports Illuminate 11 through 13, and the Predis adapter supports Predis 2 and 3. Flysystem 1 and older client releases are no longer supported.

Use this sequence for an upgrade or rollback:

  1. Stop or drain every worker that uses the affected cache.
  2. Clear each affected APCu, Redis, Predis, or namespaced cache store.
  3. Deploy the target version and restart the workers.

Contributing

Read CONTRIBUTING.md before opening a pull request. Report cache package issues on the GitHub issue tracker.

About

This is the main repository for all our cache adapters

www.php-cache.com

Resources

Readme
License

Contributing

Contributing
Activity
Custom properties

Stars

266 stars

Watchers

13 watching

Forks

79 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.