Download the PHP package damimpr/cache-multi-layer without Composer

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

Cache multi layer

PHP library used for fast management of a single cache system, or management of multiple systems with priority levels.

The management of a single system works like a mask and allows transparent use of the cache by abstracting which one you want to use.

Multi-level management is conceived as a vertical hierarchy, where the highest priority is at the top, and lower priorities are gradually lower down. Write operations are performed on all levels. Read operations are performed by reading from the cache system with the highest priority, and if the data is not found, the next system is read. Whenever a read from a system is successful, the cache systems with higher priority that did not return any value are updated.

The currently implemented caches are:

All cache systems support all primitive types (int, float, string) and instances of classes that implement the Cacheable interface. Arrays are also supported, provided that the elements they contain are as described above.

Install

Usage examples

Single cache

example with redis cache

Multi cache level

Example with apcu cache used with maximum priority and redis cache used with lower priority

Contribuiting

If you would like to contribute to this library, there is a docker you can use in development.

The docker image has been developed to execute commands, which are executable through the commands file, and are listed below:


All versions of cache-multi-layer with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
predis/predis Version ^3.3
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 damimpr/cache-multi-layer contains the following files

Loading the files please wait ...