2017 © Pedro Peláez
 

library pcache

Wrapper for Predis to add GetOrSet

image

xes/pcache

Wrapper for Predis to add GetOrSet

  • Saturday, June 20, 2015
  • by xes
  • Repository
  • 1 Watchers
  • 0 Stars
  • 93 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 8 % Grown

The README.md

Pcache

Installation

composer require xes/pcache

Usage

require 'vendor/autoload.php';

$predis = new Predis\Client();
$cache = new xes\Pcache($predis);

$keyname = 'someKey';
$TTL = 60;

echo $cache->get($keyname, $TTL, function() {
    // Some slow function such as a database call
    sleep(1);
    return 'hello world';
});

The Versions

20/06 2015

dev-master

9999999-dev https://github.com/dan1elhughes/pcache

Wrapper for Predis to add GetOrSet

  Sources   Download

The Requires

 

20/06 2015

1.2

1.2.0.0 https://github.com/dan1elhughes/pcache

Wrapper for Predis to add GetOrSet

  Sources   Download

The Requires

 

20/06 2015

1.1.5

1.1.5.0 https://github.com/dan1elhughes/pcache

Wrapper for Predis to add GetOrSet

  Sources   Download

The Requires

 

20/06 2015

1.1.4

1.1.4.0 https://github.com/dan1elhughes/pcache

Wrapper for Predis to add GetOrSet

  Sources   Download

The Requires

 

19/06 2015

1.1.3

1.1.3.0 https://github.com/dan1elhughes/pcache

Wrapper for Predis to add GetOrSet

  Sources   Download

The Requires

 

14/06 2015

1.1.2

1.1.2.0 https://github.com/dan1elhughes/pcache

Wrapper for Predis to add GetOrSet

  Sources   Download

The Requires

 

14/06 2015

1.1.1

1.1.1.0 https://github.com/dan1elhughes/pcache

Wrapper for Predis to add GetOrSet

  Sources   Download

The Requires

 

13/06 2015

1.1

1.1.0.0 https://github.com/dan1elhughes/pcache

Wrapper for Predis to add GetOrSet

  Sources   Download

The Requires

 

13/06 2015

1.0

1.0.0.0 https://github.com/dan1elhughes/pcache

Wrapper for Predis to add GetOrSet

  Sources   Download

The Requires