Download the PHP package fsi/cache without Composer

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

THIS PACKAGE IS DEPRECATED

Do not use this package, as it will not receive any updates and may be deleted in the future.

FSi Cache Component Documentation

Features:

By default all cache types use fsicache namespace, but you can change it using setNamespace method:

You can also use option 'namespace' while creating new cache (it can be used in all types of cache).

There is also a possibility to pass namespace as optional parameter into methods:

If $namespace is null the current namespace is taken from method getNamespace().

Setup and autoloading

We highly recommend to use autoloader generated by composer.phar.

Adding reflection into composer.json

Array Cache

Array cache should be used only in development environment to simulate normal cache behavior.

Example:

APC Cache

APC cache require APC extension enabled in webserv. Informations about APC can be found at php.net

Example:

File Cache

File cache require cache directory path inside of variable $options['directory'] that is passed in constructor There is also an additional parameter $options['dirlvl'] that describe how deep cache should be nested. dirlvl parameter might be useful when you know that cache will hold a big amount of files. Higher dirlvl means less files in signle cache directory.

Example:

Examples

Basic Usage

Namespace Usage


All versions of cache with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 fsi/cache contains the following files

Loading the files please wait ....