2017 © Pedro Peláez
 

library php-static-cache

PHP caching class uses static variable to cache data during runtime

image

truongwp/php-static-cache

PHP caching class uses static variable to cache data during runtime

  • Monday, August 28, 2017
  • by truongwp
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHP caching class uses static variable to cache data during runtime, (*1)

Installation

Use composer to include the library:, (*2)

composer require truongwp/php-static-cache

Example

$static_cache = new \Truongwp\StaticCache();

if ( $static_cache->has( 'key' ) ) {
    $value = $static_cache->get( 'key' );
} else {
    $value = do_something();
    $static_cache->set( 'key', $value );
}

The Versions

28/08 2017

dev-master

9999999-dev

PHP caching class uses static variable to cache data during runtime

  Sources   Download

MIT

28/08 2017

0.1.0

0.1.0.0

PHP caching class uses static variable to cache data during runtime

  Sources   Download

MIT