2017 © Pedro Peláez
 

library mcache

mcache php library

image

g4/mcache

mcache php library

  • Thursday, August 10, 2017
  • by g4code
  • Repository
  • 4 Watchers
  • 1 Stars
  • 11,044 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 21 Versions
  • 9 % Grown

The README.md

mcache

mcache - php cache wrapper library, (*1)

Install

Install through composer package manager. Find it on packagist., (*2)

composer require g4/mcache

Supported caching systems

Usage

Memcached instance

``` php <?php, (*3)

$driverName = 'Libmemcached'; $options = array( 'servers' => array( '127.0.0.1:11211' ); ); $prefix = 'my_prefix';, (*4)

$mcache = \G4\Mcache\McacheFactory::createInstance($driverName, $options, $prefix);, (*5)


### Couchbase instance ``` php <?php $driverName = 'Couchbase'; $options = array( 'bucket' => 'my_bucket', 'servers' => array( '127.0.0.1:8091' ); ); $prefix = 'my_prefix'; $mcache = \G4\Mcache\McacheFactory::createInstance($driverName, $options, $prefix);

Available options

* bucket - string
* servers - array
* user - string
* pass - string
* persistent - bool
* timeout - int (default 2500000)

Methods

``` php <?php, (*6)

// Get from cache $value = $mcache ->key('my_key') ->get();, (*7)

// Save to cache $mcache ->key('my_key') ->value('my_value') ->set();, (*8)

// Sava to cache with expiration $mcache ->key('my_key') ->value('my_value') ->expiration(3600) // in seconds (default 0) ->set();, (*9)

// Delete from cache $mcache ->key('my_key') ->delete();, (*10)

// Replace a value $mcache ->key('my_key') ->value('my_value') ->replace(); ```, (*11)

Development

Install dependencies

$ make install

Run tests

$ make test

License

(The MIT License) see LICENSE file for details..., (*12)

The Versions

10/08 2017

dev-master

9999999-dev

mcache php library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

10/08 2017

dev-develop

dev-develop

mcache php library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

10/08 2017

0.12.0

0.12.0.0

mcache php library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

15/09 2016

0.11.0

0.11.0.0

mcache php library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

13/09 2016

0.10.1

0.10.1.0

mcache php library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

13/09 2016

0.10.0

0.10.0.0

mcache php library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

12/09 2016

0.9.1

0.9.1.0

mcache php library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

30/08 2016

0.9.0

0.9.0.0

mcache php library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

25/03 2015

0.8.2

0.8.2.0

mcache php library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

24/03 2015

0.8.1

0.8.1.0

mcache php library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

24/03 2015

0.8.0

0.8.0.0

mcache php library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

20/03 2015

0.7.1

0.7.1.0

mcache php library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

17/03 2015

0.7.0

0.7.0.0

mcache php library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

27/02 2015

0.6.2

0.6.2.0

mcache php library

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

27/01 2014

0.6.1

0.6.1.0

mcache php library

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

24/01 2014

0.6.0

0.6.0.0

mcache php library

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

06/01 2014

0.5.0

0.5.0.0

mcache php library

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

06/01 2014

0.4.0

0.4.0.0

mcache php library

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

23/12 2013

0.3.0

0.3.0.0

mcache php library

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija
by Ivan Krickovic

cache memcached mcache

04/12 2013

0.2.0

0.2.0.0

mcache php library

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija

cache memcached mcache

03/12 2013

0.1.0

0.1.0.0

mcache php library

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Drasko Gomboc
by Dejan Samardzija

cache memcached mcache