Skip to content

sokumar2/php-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Cache

LICENSE PHP8

An LRU (Least Recently Used) and MRU (Most Recently Used) cache implementations in PHP.

Usage

LRU

$cache = new CacheFactory()->createInstance(3);
$cache->put('key', '<value>');

$cache->get('key');

MRU

use SK\Cache\Type as CacheType;

...
$cache = new CacheFactory()->createInstance(3, CacheType::MRU);
...

Tests

composer run test

About

An LRU (Least Recently Used) and MRU (Most Recently Used) cache implementations in PHP

Resources

License

Stars

Watchers

Forks

Contributors

Languages