2017 © Pedro Peláez
 

library silex-stash-service

The stash cache service for silex.

image

cwreden/silex-stash-service

The stash cache service for silex.

  • Monday, August 4, 2014
  • by cwreden
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SilexStashService

The stash cache service for silex., (*1)

Services

  • stash => StashService
  • stash.cache => Default Pool
  • stash.caches => Pimple with all registered Pool classes

Register a new cache pool on runtime

You can register a new cache by using the 'stash.cache.register'-function., (*2)


$app['stash.cache.register']('myNewCachePool', array(
    'driver' => 'apc'
));

Possible drivers

  • memory
  • file_system
  • redis
  • sqlite
  • apc

Options


array(
    'driver' => 'apc',            // use the driver oder driverClass option
    'driverClass' => 'My\Driver',
    'poolClass' => 'My\Pool',
    'itemClass' => 'My\Item',
    'loggerClass' => 'My\PSR\Logger'
    ...                           // all stash known options
);

The Versions

04/08 2014

dev-master

9999999-dev http://github.com/cwreden/SilexStashService

The stash cache service for silex.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Christian Wreden

cache redis caching memcached