Download the PHP package yii1tech/psr-cache without Composer

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

Yii1 PSR-6 Cache Extension


This extension allows integration with PSR-6 compatible cache for Yii1.

For license information check the LICENSE-file.

Latest Stable Version Total Downloads Build Status

Installation

The preferred way to install this extension is through composer.

Either run

or add

to the "require" section of your composer.json.

Usage

This extension allows integration with PSR-6 compatible cache for Yii1. It provides several instruments for that. Please choose the one suitable for your particular needs.

Wrap PSR cache pool into Yii cache

The most common use case for PSR cache involvement into Yii application is usage of 3rd party cache library. This can be achieved using \yii1tech\psr\cache\Cache as Yii cache component.

Application configuration example:

Wrap Yii cache into PSR cache pool

There is another use case related to PSR cache besides bootstrapping external cache storage. Sometimes 3rd party libraries may require PSR cache pool instance to be passed to them in order to function. \Psr\Cache\CacheItemPoolInterface allows wrapping standard Yii cache component into a PSR compatible cache pool.

Application configuration example:

Usage example:

Extended interface

This extension introduces 2 interfaces, which extend the ones from PSR-6:

These interfaces could be used to utilize additional functionality, which is omitted at PSR. In particular these allow usage of Yii cache dependency feature. For example:

In addition, \yii1tech\psr\cache\CacheItemPoolContract declares method get(), which can be used to simplify usage of the cache pool, making it similar to Symfony. For example:

Using cache tags

This extension allows setup of tags per each particular cache items via \yii1tech\psr\cache\CacheItemContract::tag() method.

Heads up! This package does not directly implement cache tags feature - it does rely on wrapped Yii cache component to support it instead. All tags associated with the cache item are passed as 5th argument to \ICache::set() method, assuming its particular implementation will handle them. Thus cache item tags saving will silently fail if related cache component does not provide support for it.

You may use yii1tech/tagged-cache extension to get a tag aware cache Yii component.

Application configuration example:

Tag specification example:

In order to clear items associated with particular tag use \yii1tech\psr\cache\CacheItemPoolContract::invalidateTags(). For example:


All versions of psr-cache with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
yiisoft/yii Version ~1.1.0
psr/cache Version ^1.0.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 yii1tech/psr-cache contains the following files

Loading the files please wait ....