Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

arabcoders/cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cache Handler

A Base Cache handler that abstract away all the drivers/adapters differences under common Interface, it can be have many drivers.

Install

Via Composer

$ composer require arabcoders/cache

Usage Example.

<?php

require __DIR__ . '/../../autoload.php';

$adapter = new \arabcoders\cache\Adapters\Redis( [
    'port'      => 6379,
    'server'    => '127.0.0.1'
]);

$cache = new \arabcoders\cache\Cache( $adapter );

$cache->set( 'test', 'foo', 120 );

echo $cache->get('test')->getValue();

About

No Longer maintained, use symfony/cache/

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages