Skip to content

jungyoung/SimpleFileCache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages