PHP Classes
elePHPant
Icontem

PHP Array Cache File: Store array values in PHP cache file scripts

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-05-07 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 202 All time: 7,971 This week: 702Up
Version License PHP version Categories
arraycache 1.0.0MIT/X Consortium ...5PHP 5, Files and Folders, Cache, Code..., C...
Description Author

This class can store array values in PHP cache file scripts.

It can take a array value and an optional file name and store the array in a PHP cache script.

The generated script can load the original array value using a require statement.

Name: troy knapp <contact>
Classes: 2 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 1x

Details

ArrayCache

Stupid simple class capable of creating php files that return arrays.

This is a very basic class that just saves arrays in a file that return said array. I created this class primarily because I'm exceedingly lazy, and I wanted to go through as minimum of an effort as possible to save and retrieve config values.

Ultimately, I think that if you need a way to store data that will not be written very often, that's lightning fast to access, who's data can be version controlled, you don't want the extra overhead of having a db connection, and/or you don't want to json_decode or unserialize your data to stick it into an array, then this class may be for you.

  Files folder image Files  
File Role Description
Files folder imagecache (1 file)
Plain text file ArrayCache.php Class Class source
Accessible without login Plain text file Example.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  cache  
File Role Description
  Accessible without login Plain text file example.php Output Sample output

 Version Control Unique User Downloads Download Rankings  
 100%
Total:202
This week:0
All time:7,971
This week:702Up