PHP Classes

ITE PSR-6 Cache: Cache data in several storage compliant with PSR-6

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 78%Total: 158 All time: 8,997 This week: 36Up
Version License PHP version Categories
ite-cache 1.3Custom (specified...5.6PHP 5, Tools, Cache, PSR
Description 

Author

This package can cache data in several storage containers compliant with PSR-6.

It provides several container classes compliant with PSR-6 specification that can store and retrieve data to be cached.

Currently it provides container classes for storing data in files, session variables, and memcached.

The file cache saves values into files and loads from them if requested and the cache is not expired.

The session cache saves values into user session values. It will be cleared after the user session expires.

The memcached adapter wraps the native memcached extension.

Innovation Award
PHP Programming Innovation award nominee
October 2016
Number 11


Prize: SourceGuarding PHP encoder tool
PSR-6 is a PHP Standards Recommendation from the FIG (Framework Interoperability Group) that defines a common interfaces for packages that want to implement data caching functionality.

This package provides an implementation of the PSR-6 interfaces to store and retrieved cache data in several types of containers like files, session variables and memcached.

This way all applications that need a caching package can use interchangeably these or other compatible packages that implement the PSR-6 interfaces.

Manuel Lemos
Picture of Kiril Savchev
  Performance   Level  
Name: Kiril Savchev <contact>
Classes: 6 packages by
Country: Bulgaria Bulgaria
Age: 38
All time rank: 266518 in Bulgaria Bulgaria
Week rank: 170 Up2 in Bulgaria Bulgaria Up
Innovation award
Innovation award
Nominee: 5x

Example

<?php

use Ite\Cache\CacheStrategyFactory;

chdir(realpath(__DIR__.'/..'));

require_once
'./vendor/autoload.php';

$factory = new CacheStrategyFactory();
$cache = $factory->create('file', [CacheStrategyFactory::EXPIRE_KEY => 5]);
//$cache = $factory->create('session', ['session_key' => 'session_factory' ,CacheStrategyFactory::EXPIRE_KEY => 5]);

var_dump($cache);


  Files folder image Files (102)  
File Role Description
Files folder imagecache (1 file)
Files folder imagedocs (2 files, 9 directories)
Files folder imageexamples (4 files)
Files folder imagesrc (8 files, 1 directory)
Files folder imagetests (4 files)
Plain text file composer.json Data Auxiliary data
Plain text file composer.lock Data Auxiliary data
Plain text file LICENSE Lic. License text
Plain text file README.md Doc. Documentation

  Files folder image Files (102)  /  cache  
File Role Description
  Plain text file check_time Data Auxiliary data

  Files folder image Files (102)  /  docs  
File Role Description
Files folder imageclasses (9 files)
Files folder imagecss (5 files, 1 directory)
Files folder imagefiles (16 files, 1 directory)
Files folder imagefont (1 file)
Files folder imagegraphs (2 files)
Files folder imageimages (12 files, 1 directory)
Files folder imagejs (10 files, 1 directory)
Files folder imagenamespaces (4 files)
Files folder imagereports (3 files)
  Plain text file .htaccess Data Auxiliary data
  HTML file index.html Doc. Documentation

  Files folder image Files (102)  /  docs  /  classes  
File Role Description
  HTML file Ite.Cache.AbstractPool.html Doc. Documentation
  HTML file Ite.Cache.CachePoolInterface.html Doc. Documentation
  HTML file Ite.Cache.CacheStrategyFactory.html Doc. Documentation
  HTML file Ite.Cache.Exception.CacheException.html Doc. Documentation
  HTML file Ite.Cache.Exceptio...umentException.html Doc. Documentation
  HTML file Ite.Cache.FileCache.html Doc. Documentation
  HTML file Ite.Cache.Item.html Doc. Documentation
  HTML file Ite.Cache.Memcached.html Doc. Documentation
  HTML file Ite.Cache.SessionCache.html Doc. Documentation

  Files folder image Files (102)  /  docs  /  css  
File Role Description
Files folder imagephpdocumentor-clean-icons (2 files, 1 directory)
  Plain text file bootstrap-combined.no-icons.min.css Data Auxiliary data
  Plain text file font-awesome.min.css Data Auxiliary data
  Plain text file jquery.iviewer.css Data Auxiliary data
  Plain text file prism.css Data Auxiliary data
  Plain text file template.css Data Auxiliary data

  Files folder image Files (102)  /  docs  /  css  /  phpdocumentor-clean-icons  
File Role Description
Files folder imagefonts (2 files)
  Plain text file lte-ie7.js Data Auxiliary data
  Plain text file style.css Data Auxiliary data

  Files folder image Files (102)  /  docs  /  css  /  phpdocumentor-clean-icons  /  fonts  
File Role Description
  Plain text file phpdocumentor-clean-icons.dev.svg Data Auxiliary data
  Plain text file phpdocumentor-clean-icons.svg Data Auxiliary data

  Files folder image Files (102)  /  docs  /  files  
File Role Description
Files folder imageException (2 files)
  HTML file AbstractPool.html Doc. Documentation
  Plain text file AbstractPool.php.txt Doc. Documentation
  HTML file CachePoolInterface.html Doc. Documentation
  Plain text file CachePoolInterface.php.txt Doc. Documentation
  HTML file CacheStrategyFactory.html Doc. Documentation
  Plain text file CacheStrategyFactory.php.txt Doc. Documentation
  HTML file Exception.CacheException.html Doc. Documentation
  HTML file Exception.InvalidArgumentException.html Doc. Documentation
  HTML file FileCache.html Doc. Documentation
  Plain text file FileCache.php.txt Doc. Documentation
  HTML file Item.html Doc. Documentation
  Plain text file Item.php.txt Doc. Documentation
  HTML file Memcached.html Doc. Documentation
  Plain text file Memcached.php.txt Doc. Documentation
  HTML file SessionCache.html Doc. Documentation
  Plain text file SessionCache.php.txt Doc. Documentation

  Files folder image Files (102)  /  docs  /  files  /  Exception  
File Role Description
  Plain text file CacheException.php.txt Doc. Documentation
  Plain text file InvalidArgumentException.php.txt Doc. Documentation

  Files folder image Files (102)  /  docs  /  font  
File Role Description
  Plain text file fontawesome-webfont.svg Data Auxiliary data

  Files folder image Files (102)  /  docs  /  graphs  
File Role Description
  HTML file class.html Doc. Documentation
  Plain text file classes.svg Data Auxiliary data

  Files folder image Files (102)  /  docs  /  images  
File Role Description
Files folder imageiviewer (8 files)
  Image file apple-touch-icon-114x114.png Icon Icon image
  Image file apple-touch-icon-72x72.png Icon Icon image
  Image file apple-touch-icon.png Icon Icon image
  Plain text file custom-icons.svg Data Auxiliary data
  Image file favicon.ico Data Auxiliary data
  Image file hierarchy-item.png Icon Icon image
  Image file icon-class-13x13.png Icon Icon image
  Plain text file icon-class.svg Data Auxiliary data
  Image file icon-interface-13x13.png Icon Icon image
  Plain text file icon-interface.svg Data Auxiliary data
  Image file icon-trait-13x13.png Icon Icon image
  Plain text file icon-trait.svg Data Auxiliary data

  Files folder image Files (102)  /  docs  /  images  /  iviewer  
File Role Description
  Image file grab.cur Data Auxiliary data
  Image file hand.cur Data Auxiliary data
  Image file iviewer.rotate_left.png Icon Icon image
  Image file iviewer.rotate_right.png Icon Icon image
  Image file iviewer.zoom_fit.png Icon Icon image
  Image file iviewer.zoom_in.png Icon Icon image
  Image file iviewer.zoom_out.png Icon Icon image
  Image file iviewer.zoom_zero.png Icon Icon image

  Files folder image Files (102)  /  docs  /  js  
File Role Description
Files folder imageui (1 directory)
  Plain text file bootstrap.min.js Data Auxiliary data
  Plain text file html5.js Data Auxiliary data
  Plain text file jquery-1.11.0.min.js Data Auxiliary data
  Plain text file jquery.dotdotdot-1.5.9.js Data Auxiliary data
  Plain text file jquery.dotdotdot-1.5.9.min.js Data Auxiliary data
  Plain text file jquery.iviewer.js Data Auxiliary data
  Plain text file jquery.iviewer.min.js Data Auxiliary data
  Plain text file jquery.mousewheel.js Data Auxiliary data
  Plain text file jquery.smooth-scroll.js Data Auxiliary data
  Plain text file prism.min.js Data Auxiliary data

  Files folder image Files (102)  /  docs  /  js  /  ui  
File Role Description
Files folder image1.10.4 (1 file)

  Files folder image Files (102)  /  docs  /  js  /  ui  /  1.10.4  
File Role Description
  Plain text file jquery-ui.min.js Data Auxiliary data

  Files folder image Files (102)  /  docs  /  namespaces  
File Role Description
  HTML file default.html Doc. Documentation
  HTML file Ite.Cache.Exception.html Doc. Documentation
  HTML file Ite.Cache.html Doc. Documentation
  HTML file Ite.html Doc. Documentation

  Files folder image Files (102)  /  docs  /  reports  
File Role Description
  HTML file deprecated.html Doc. Documentation
  HTML file errors.html Doc. Documentation
  HTML file markers.html Doc. Documentation

  Files folder image Files (102)  /  examples  
File Role Description
  Plain text file factory_test.php Example Example script
  Plain text file file_cache_test.php Class Class source
  Plain text file memcached_tests.php Class Class source
  Plain text file session_cache_test.php Class Class source

  Files folder image Files (102)  /  src  
File Role Description
Files folder imageException (2 files)
  Plain text file AbstractPool.php Class Class source
  Plain text file CachePoolInterface.php Class Class source
  Plain text file CacheStrategyFactory.php Class Class source
  Plain text file FileCache.php Class Class source
  Plain text file Item.php Class Class source
  Plain text file Memcached.php Class Class source
  Plain text file NoopCache.php Class Class source
  Plain text file SessionCache.php Class Class source

  Files folder image Files (102)  /  src  /  Exception  
File Role Description
  Plain text file CacheException.php Class Class source
  Plain text file InvalidArgumentException.php Class Class source

  Files folder image Files (102)  /  tests  
File Role Description
  Plain text file FileCacheTest.php Class Class source
  Plain text file MemcachedTests.php Class Class source
  Plain text file SessionCacheTest.php Class Class source
  Plain text file UnitTestTrait.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:158
This week:0
All time:8,997
This week:36Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:87%StarStarStarStarStar
Examples:93%StarStarStarStarStar
Tests:-
Videos:-
Overall:78%StarStarStarStar
Rank:45