Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

SimpleFileCache

simple file cache


use FileCache;

$id = 'dragonball';
$fileCache = new FileCache($id);

$cachename = 'carrot';
// All types : object, array, string, int...
$values = ['powerCount'=>'12352312423', 'powerType'=>'Superscient_3'];
$timeSecond = '3600';
$fileCache->set($cachename, $values , $timeSecond);


use FileCache;

$id = 'dragonball';
$fileCache = new FileCache($id);

$cachename = 'carrot';
$cacheDatas = $fileCache->get($cachename);
/*
    result data:

    [
        'powerCount'=>'12352312423',
        'powerType'=>'Superscient_3'
    ]
*/

About

simple file cache

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages