Download the PHP package tobento/service-cache without Composer

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

Cache Service

Providing PSR-6 and PSR-16 caches for PHP applications.

Table of Contents

Getting started

Add the latest version of the cache service project running this command.

Requirements

Highlights

Documentation

PSR 6 Cache

Available Cache Item Pools

File Storage Cache Item Pool

The file storage cache item pool using the File Storage Service to store the items.

First, you will need to install :

Then, create the File Storage you wish to use for pool:

Check out the Can Delete Expired Items interface to learn more about it.

Storage Cache Item Pool

The storage cache item pool using the Storage Service to store the items.

First, you will need to install :

Then, create the Storage you wish to use for pool:

Check out the Can Delete Expired Items interface to learn more about it.

Recommended table column types for (database) storage

Column Type
id VARCHAR(255) NOT NULL PRIMARY KEY
data MEDIUMBLOB NOT NULL
expiration TIMESTAMP
namespace VARCHAR(100) NOT NULL

Array Cache Item Pool

The cache items will be stored in memory and not persisted outside the running PHP process in any way. Might be useful for testing purposes.

Psr16 Cache Item Pool

The Psr16 cache item pool using the defined Psr16 cache to store items.

Cache Item Pools

Create Pools

Add Pools

add

register

You may use the register method to only create the pool if requested.

Get Pool

If the pool does not exist or could not get created it throws a .

You may use the method to check if a pool exists.

You may use the method to get all pool names.

Default Pools

You may add default pools for your application design.

Interfaces

Cache Item Pool Factory Interface

You may use this interface for creating pools.

Cache Item Pools Interface

PSR 16 Simple Cache

Available Caches

Psr6 Cache

The Psr6 cache using the defined Psr6 pool to store items.

Check out the Can Delete Expired Items interface to learn more about it.

Caches

Create Caches

Add Caches

add

register

You may use the register method to only create the cache if requested.

Get Cache

If the cache does not exist or could not get created it throws a .

You may use the method to check if a cache exists.

You may use the method to get all cache names.

Default Caches

You may add default caches for your application design.

Interfaces Simple

Cache Factory Interface

You may use this interface for creating caches.

Caches Interface

Shared Interfaces

Can Delete Expired Items

Credits


All versions of service-cache with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
tobento/service-clock Version ^1.0
tobento/service-iterable Version ^1.0
psr/cache Version ^2.0|^3.0
psr/simple-cache Version 2 - 3
psr/clock 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 tobento/service-cache contains the following files

Loading the files please wait ....