2017 © Pedro Peláez
 

library json-cache

image

php-platform/json-cache

  • Friday, March 31, 2017
  • by Raaghu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,615 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

PHP Platform Caching JSON Meta Data

Whole PHP Platform is built by using Meta Data in JSON Format. This package provides caching for JSON Metadata, (*1)

Build Status, (*2)

Usage

  • to read from cache ``` PHP PhpPlatform\JSONCache\Cache::getInstance()->getData($key);
where ``$key`` is string representaion of json path for required cached value

 - to store in cache
``` PHP
PhpPlatform\JSONCache\Cache::getInstance()->setData($data);

where $data is an array to be stored in the cache, (*3)

  • to reset cache ``` PHP PhpPlatform\JSONCache\Cache::getInstance()->reset();


### Extending the cache `PhpPlatform\JSONCache\Cache` can be extended to create user defined caches ``` PHP class NewCache extends PhpPlatform\JSONCache\Cache{ private static $cacheObj = null; protected $cacheFileName = "newcachefile"; // new cache filename public static function getInstance(){ if(self::$cacheObj == null){ self::$cacheObj = new NewCache(); } return self::$cacheObj; } }

Example

Please see the test TestCache for more examples, (*4)

The Versions

31/03 2017

v0.1.x-dev

0.1.9999999.9999999-dev https://github.com/PHPPlatform/json-cache

  Sources   Download

The Requires

  • php >=5.3

 

The Development Requires

cache json caching metadata php-platform

31/03 2017

dev-master

9999999-dev https://github.com/PHPPlatform/json-cache

  Sources   Download

The Requires

  • php >=5.3

 

The Development Requires

cache json caching metadata php-platform

31/03 2017

v0.1.2

0.1.2.0 https://github.com/PHPPlatform/json-cache

  Sources   Download

The Requires

  • php >=5.3

 

The Development Requires

cache json caching metadata php-platform

19/01 2017

v0.1.1

0.1.1.0 https://github.com/PHPPlatform/json-cache

  Sources   Download

The Requires

  • php >=5.3

 

The Development Requires

cache json caching metadata php-platform

11/01 2017

v0.1.0

0.1.0.0 https://github.com/PHPPlatform/json-cache

  Sources   Download

The Requires

  • php >=5.3

 

The Development Requires

cache json caching metadata php-platform