2017 © Pedro Peláez
 

library silex-memcache

Memcache extension for Silex

image

mheap/silex-memcache

Memcache extension for Silex

  • Wednesday, October 4, 2017
  • by mheap
  • Repository
  • 3 Watchers
  • 26 Stars
  • 48,089 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

Silex-Memcache

Build Status, (*1)

Requirements

This extension only works with PHP 7.1+, Silex 2 and the Memcached driver. Version 1.0.0 is compatible with Silex 1 and both the Memcache/Memcached drivers., (*2)

Installation

Install with composer:, (*3)

composer require mheap/silex-memcache

Usage

Before you can use this extension you need to register it with your application. You can specify a list of servers to connect to at this point, (*4)

$app->register(new SilexMemcache\MemcacheExtension(), array(
    'memcache.server' => array(
        array('127.0.0.1', 11211)
    )
));

Once the extension is registered, it'll be available as $app['memcache']:, (*5)

$app->get('/', function() use($app) {
    $app['memcache']->set('my_value', 'This is an example');
    $value = $app['memcache']->get('my_value');
});

Running the tests

You'll need memcached running on port 11211 locally to run the tests. If you don't have memcached installed you can run docker-compose up to run it in a container instead., (*6)

The Versions

04/10 2017

dev-master

9999999-dev https://github.com/mheap/Silex-Memcache

Memcache extension for Silex

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

silex memcache

04/10 2017

2.0.0

2.0.0.0 https://github.com/mheap/Silex-Memcache

Memcache extension for Silex

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

silex memcache

08/12 2015

1.0.0

1.0.0.0 https://github.com/mheap/Silex-Memcache

Memcache extension for Silex

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

silex memcache