dev-master
9999999-devPHP caching class uses static variable to cache data during runtime
MIT
by Truong Giang
0.1.0
0.1.0.0PHP caching class uses static variable to cache data during runtime
MIT
by Truong Giang
PHP caching class uses static variable to cache data during runtime
PHP caching class uses static variable to cache data during runtime, (*1)
Use composer to include the library:, (*2)
composer require truongwp/php-static-cache
$static_cache = new \Truongwp\StaticCache(); if ( $static_cache->has( 'key' ) ) { $value = $static_cache->get( 'key' ); } else { $value = do_something(); $static_cache->set( 'key', $value ); }
PHP caching class uses static variable to cache data during runtime
MIT
PHP caching class uses static variable to cache data during runtime
MIT