2017 © Pedro Peláez
 

library kacho

Kacho: File-based PHP5 caching library

image

kktsvetkov/kacho

Kacho: File-based PHP5 caching library

  • Tuesday, March 28, 2017
  • by kktsvetkov
  • Repository
  • 0 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Kacho

Very basic and simple file-based PHP5 caching library, (*1)

The "Kacho" library is designed to cache data "as is" using compiled PHP files; "compiled" means that the data inside them is just declared, similar to just how the JSON works, but in native PHP ;), (*2)

In other words you can store various type of data (not just scalars) in PHP files generated by Kacho: that's why you can think of this as the PHP version of JSON., (*3)

Here is an example of how to use it:, (*4)

/* Cache current $_SERVER array for one hour */
echo Kacho::open('/tmp/proba.php')->write($_SERVER, 3600)
    ? 'Kacho caching is OK :)'
    : 'Kacho caching failed :(';

/* Read the cached $_SERVER array */
echo Kacho::open('/tmp/proba.php')->read($_SERVER);

Make sure that the locations that you provide for the cache files are writable, e.g. you can create new files there., (*5)

Migrated from https://code.google.com/archive/p/kacho/, (*6)

The Versions

28/03 2017

dev-master

9999999-dev https://github.com/kktsvetkov/kacho/

Kacho: File-based PHP5 caching library

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.2.0

 

cache caching

28/03 2017

v0.1

0.1.0.0 https://github.com/kktsvetkov/kacho/

Kacho: File-based PHP5 caching library

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.2.0

 

cache caching