Download the PHP package molajo/cache without Composer

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

======= Molajo Cache API

Build Status

Simple, clean cache API for PHP applications to get, [set] (https://github.com/Molajo/Cache/Cache#set), [remove] (https://github.com/Molajo/Cache/Cache#remove), [clear] (https://github.com/Molajo/Cache/Cache#clear), cache.

Cache Handlers available include:

At a glance ...

  1. Construct a Cache Handler Class.
  2. Instantiate the Cache Adapter, injecting it with the Cache Handler instance.
  3. Set cache.
  4. Get cache.
  5. Remove cache.
  6. Clear cache.

Cache API

Common API for Cache operations: get, [set] (https://github.com/Molajo/Cache/Cache#set), [remove] (https://github.com/Molajo/Cache/Cache#remove), [clear] (https://github.com/Molajo/Cache/Cache#clear) methods.

Get

Retrieves a CacheItem object associated with the key. If the value is not found, an exception is thrown.

Parameters

Set

Stores a value as cache for the specified Key value and number of seconds specified.

Parameters

Remove

Removes a cache entry associated with the specified Key value.

Parameters

Clear

Remove all cache for this Cache Handler instance.

Parameters

Cache Adapter Handlers

Cache Handlers available include:

Apc

APC (Alternative PHP Cache) comes standard with PHP. An APC Cache Handler is available with Molajo Cache and can be used, as follows.

Database

Before using the Database Cache Handler, a table must be available with four columns: id (identity column), key (varchar(255)), value (text) and expiration (integer). When instantiating the Cache Handler, pass in the database connection, the name of the database table for cache, the value for the RDBMS quote and name quote, as shown in this example.

Dummy

The Dummy Cache Handler can be used for testing purpose. It does not really cache data. Use, as follows:

File

The File Cache Handler can be used to turn the local filesystem into a caching device. Use, as follows:

Memcached

The Memcached Cache Handler requires the memcached PHP extension be loaded and that the Memcached class exists. For more information, see Memcached in the PHP Manual. Use, as follows:

Memory

The Memory Cache Handler can be used storing the variables in memory. This can be used with Sessions to create persistence, if desired. Use, as follows:

Redis

The Redis Cache Handler can be used storing the variables in memory. This can be used with Sessions to create persistence, if desired. Use, as follows:

Wincache

The Wincache Cache Handler requires the PHP extension wincache is loaded and that wincache_ucache_get is callable. For more information, see Windows Cache for PHP.. Besides using the Windows Operating System, there are no other configuration options required to use Wincache.

xCache

The xCache Handler requires the PHP extension xcache is loaded and that xcache_get is callable.

Install using Composer from Packagist

Step 1: Install composer in your project

Step 2: Create a composer.json file in your project root

Step 3: Install via composer

Requirements and Compliance


All versions of cache with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
commonapi/cache Version dev-master
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 molajo/cache contains the following files

Loading the files please wait ....