Download the PHP package exos/hybridcache without Composer

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

Hybrid Cache for PHP >= 5.3.x

Example of usage:

Multiples storages

Currently, Hybrid Cache includes drivers for caching on Disk, Memcache and Redis, but you can extend it creating your own key/value storage connector, implementing the Hybrid\StorageMedia interface.

Storage instances can be assigned for reading and writing, and you can have multiple different storage systems.

Replication

Consider you have the following scenario using Redis:

You can set it up like this:

By default, HybridCache uses a hash-based mechanism to balance load on multiple storage media. In this case, each server will receive the same amount of petitions. In a replication scenario a random petition distribution is more effective and HybridCache can try using another server on the list if the first one doesn't return anything.

To change the balancing method you should change the balanceMethod property of the instance:

However, if you wish to apply the change globally for all new instances of the HybridCache class, you can define a constant:

Note that the random method is extremely inefficient when there are several master servers.

Horizontal scalability

Horizontal scalability can be achieved with any storage media and sometimes it's better than replication.

In this case you define a number of storage media and the balancing is done using a hash generated by the key-value pair. All backend use the same algorithm, so they will all fetch the cache on the corresponding storage medium. It is very important to define the storages in the same order in all the backend servers, since the algorithm is based on the order and amount of them.

By default HybridCache uses a hash balance method, but if you want to be sure, you can set it explicitly:

To define a scalation array:

Important: HybridCache doesn't support HA (High Availability) methods in this scenario yet. We expect to implement failover mechanisms on future versions.

Multiple array philosophy

In future versions we're planning to implement groups of arrays that can combine the efficency of scalability with the fault tolerance of replication.

Who use it??

DePaginas

Website with several sections, web directory, classifieds, news and more

http://depaginas.com.ar

Periodico Tribuna

Argentinan digital newspaper

http://periodicotribuna.com.ar/

uWall.tv

Best artist listed in a wall format. Just pick an artist and discover a new experience :)

http://uWall.tv

Taggify

Ad network with improvents and creatives products.

http://taggify.net

                                               README fixed by Andres Gattinoni
                                               http://www.tail-f.com.ar/

All versions of hybridcache with dependencies

PHP Build Version
Package Version
Requires php Version ^5.3.3 || ^7.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 exos/hybridcache contains the following files

Loading the files please wait ....