Download the PHP package pulkitjalan/multicache without Composer

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

Multicache

Adds array caching to Laravels cache drivers and custom drivers.

Build Status Scrutinizer Code Quality Coverage Status License Latest Version Total Downloads

Requirements

Laravel 5.2 natively supports a caching multiple items.

Installation

Install via composer - edit your composer.json to require the package.

Then run composer update in your terminal to pull it in.

Now add the following to the providers array in your config/app.php

Usage

Any existing cache drivers and custom drivers will have access to the following new methods:

Most of the existing methods like has, get, put, forget... will also accept an array and automatically run the relevant Many function. As Expected the original methods will return results in the same format as they always have if called without an array.

Examples

Below are a few examples of how to use the functions and what they return.

Has

Get

Put

The put method works a little differently to putMany. Where putMany accepts a key value array as the first parameter and the number of minutes to store for as the second parameter, the put method takes two separate arrays as the first two parameters and minutes as the third parameter.

Eg:

Forget

How does it work?

For any driver that does not have an underlying Many method, the methods will call the Non-Many version of the method for every item in the array.

For example, when using the apc driver, which does not offer its own getMany method, then the get method will be called ten times if there are ten items in the input array.

Now, when using the memcached driver, which does have its own getMany method, then the getMany method will be called once and the data returned.

Currently the MemcachedStore, DatabaseStore, RedisStore and the ArrayStore are the only ones to offer their own Many methods. More to come soon...


All versions of multicache with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
illuminate/cache Version ~5.1
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 pulkitjalan/multicache contains the following files

Loading the files please wait ....