Download the PHP package pluggit/cache without Composer

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

Pluggit - Cache

Build Status Scrutinizer Code Quality Code Coverage

Provides an abstracion over most common user caches

TLDR;

The Cache interface

The cache interface allows access to 10 methods:

Set

Use it to store values in the cache. You can make an item expire after a certain time by passing the $timeToLive parameter bigger than zero

Note: Time to live must be an integer representing seconds

SetAll

Use it to store multiple values at one

Has

Checks if an item is in the cache and has not expired

Get

Tries to get an item from the cache, and if it's not there, it return a given default value

GetAll

Tries to get multiple items from the cache, if an item is not found, the key will be returned with a null

Demand

Tries to retrieve an item from the cache, if it's not present, it throws a NotFoundException

Delete

Deletes an item from the cache

Delete All

Deletes multiple items at once

Flush

It empties the cache

Tag

Creates a tagged cache instance. It works as a normal cache, but all the entries are put in a special bucket which you can flush.

Cache backends provided

These are the current backend implementations:

Note: You can use the CacheFactory to easily build a cache object with one of the provided backends

ChainCache

The chain cache will accept one or more cache and tries all caches before failing

Cache backend decorator provided

Logger Cache

It allows to log any exception thrown from the decorated cache. You can choose the silent mode to avoid throwing exceptions from the cache

Note: This decorator is used always when building a cache trough the builder, as it ensures that all exceptions thrown extend the base CacheException

Tags

It is possible to use tags for grouping related objects. All three provided backends have this ability. To use it just request a new tagged cache instance using the tag() method, and then you'll be able to use it in the same way you use any other cache backend:

Pimple service provider

The library includes a service provider for Pimple ^3.0 (included on Silex ^2.0) to easily register a cache

By default it will register an ArrayCache on the key cache

Options

Examples:


All versions of cache with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
psr/log Version ^1.0
psr/simple-cache Version ^1.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 pluggit/cache contains the following files

Loading the files please wait ....