Download the PHP package modmore/revolution-cache without Composer

On this page you can find all versions of the php package modmore/revolution-cache. 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 revolution-cache

RevolutionCache

A PSR-6 cache implementation to access the MODX Revolution Cache Provider.

This can be used to write custom application code against the PSR-6 caching standard, while integrating with the standard MODX 2.2+ Cache Manager. This offers access to the different cache implementations provided by MODX (file/memcached and others), and partition configuration through MODX System Settings.

RevolutionCache was developed for Commerce, but extracted into a standalone composer package to benefit others.

Installation

Install RevolutionCache via Composer:

`

License

MIT

Usage

You can read more about the PSR-6 Caching Interface Standard here.

A simple example of how you might use this adapter is as follows.

`

To use a partition other than default, you can specify it as the second option when creating the $pool instance:

`

The third $options property on the constructor can be used to specify xPDOCache options like the default expiry date, cache handler, and cache format, however it's recommended to configure this via MODX System Settings instead.

Notes

Tests

This implementation follows the PSR-6 spec as tested with the PSR-6 integration tests provided by the PHP-Cache project.

To run these tests, or to contribute to RevolutionCache:

  1. Install MODX
  2. Create a config.core.php file in the root of this project, pointing to the MODX core folder. There's an example in config.core.sample.php
  3. Make sure dependencies are installed with composer install
  4. Run phpunit from the project root.

All versions of revolution-cache with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
ext-pdo Version *
php Version >=8.0
psr/cache Version ^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 modmore/revolution-cache contains the following files

Loading the files please wait ....