2017 © Pedro Peláez
 

library php-cache

A super simple PHP caching layer.

image

b3none/php-cache

A super simple PHP caching layer.

  • Thursday, July 19, 2018
  • by b3none
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

PHP Cache

A super simple PHP caching layer., (*1)

Author

B3none - Developer / Maintainer, (*2)

Installation

composer require b3none/php-cache, (*3)

Example

The following is an extract from the example.php, (*4)

// We can choose to specify the cache dir in the constructor.
$cacheClient = new \B3none\Cache\CacheClient('/tmp/B3none/cache');

$cacheId = "b3none";
if ($cacheClient->hasCache($cacheId) && $cacheClient->isFreshEnough($cacheId, 5)) {
    $cache = $cacheClient->getCache($cacheId);
    print_r($cache);
} else {
    $dataToCache = [
        'b3none' => [
            'github' => 'https://github.com/b3none',
            'steam' => 'https://steamcommunity.com/b3none'
        ]
    ];
    $cacheClient->setCache($cacheId, $dataToCache);
}

The Versions

19/07 2018

dev-master

9999999-dev

A super simple PHP caching layer.

  Sources   Download

by Avatar b3none

19/07 2018

1.1.0

1.1.0.0

A super simple PHP caching layer.

  Sources   Download

by Avatar b3none

19/07 2018

dev-constructor-cache

dev-constructor-cache

A super simple PHP caching layer.

  Sources   Download

by Avatar b3none

17/07 2018

1.0.0

1.0.0.0

A super simple PHP caching layer.

  Sources   Download

by Avatar b3none