Download the PHP package corneltek/universal-cache without Composer

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

UniversalCache

Build Status Latest Stable Version Latest Unstable Version Total Downloads Monthly Downloads License

A Generic PHP Cache Interface with Cascade Caching.

DESCRIPTION

This package was inspired by a Perl module - Cache::Cascade.

In a multiprocess, and especially a multiserver application caching is a very effective means of improving results.

The tradeoff of increasing the scale of the caching is in added complexity. For example, caching in a FastMmap based storage is much slower than using a memory based cache, because pages must be locked to ensure that no corruption will happen. Likewise Memcached is even more overhead than FastMmap because it is network bound, and uses blocking IO (on the client side).

This module attempts to make a transparent cascade of caches using several backends.

The idea is to search from the cheapest backend to the most expensive, and depending on the options also cache results in the cheaper backends.

The benefits of using a cascade are that if the chance of a hit is much higher in a slow cache, but checking a cheap cache is negligible in comparison, we may already have the result we want in the cheap cache. Configure your expiration policy so that there is approximately an order of magnitude better probability of cache hits (bigger cache) for each level of the cascade.

INSTALL

composer require corneltek/universal-cache

UniversalCache

UniversalCache class provides a consistent interface to operate on different cache backend, you may put the fastest cache backend on the first position, so that you can fetch the cache very quickly when there is a fresh cache in the fastest storage.

ApcuCache

ArrayCache

ArrayCache implements a pure php based cache, the cache is not persistent between different request. However, it made the request-wide cache simple.

MemcacheCache

RedisCache

FileSystemCache

Hacking

Install dependencies

composer install --prefer-source

Install redis extension

phpbrew ext install github:phpredis/phpredis php7

Install memcached extension

phpbrew ext install github:php-memcached-dev/php-memcached php7 -- --disable-memcached-sasl

Install APCu extension

phpbrew ext install github:krakjoe/apcu

Be sure to enable apcu and cli mode

apc.enabled=1
apc.enable_cli=1

Run tests

phpunit

LICENSE

This package is released under MIT license.


All versions of universal-cache with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
corneltek/fileutil Version ^1.7
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 corneltek/universal-cache contains the following files

Loading the files please wait ....