2016-08-31 12:18:46 -04:00
|
|
|
<?php
|
|
|
|
/**
|
2016-09-05 16:43:37 -04:00
|
|
|
* Banker
|
2016-08-31 12:18:46 -04:00
|
|
|
*
|
|
|
|
* A Caching library implementing psr/cache
|
|
|
|
*
|
|
|
|
* PHP version 5.6
|
|
|
|
*
|
2016-09-05 16:43:37 -04:00
|
|
|
* @package Banker
|
|
|
|
* @author Timothy J. Warren <tim@timshomepage.net>
|
2016-08-31 12:18:46 -04:00
|
|
|
* @copyright 2016 Timothy J. Warren
|
2016-09-05 16:43:37 -04:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
|
|
|
* @version 1.0.0
|
|
|
|
* @link https://git.timshomepage.net/timw4mail/banker
|
2016-08-31 12:18:46 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Aviat\Banker\Driver;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Base class for cache backends
|
|
|
|
*/
|
2016-09-05 16:43:37 -04:00
|
|
|
abstract class Driver implements DriverInterface {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The object encapsulating the connection to the cache backend
|
|
|
|
*
|
|
|
|
* @var mixed
|
|
|
|
*/
|
|
|
|
protected $conn;
|
2016-08-31 12:18:46 -04:00
|
|
|
|
2016-09-05 16:43:37 -04:00
|
|
|
/**
|
|
|
|
* Data to be stored later
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $deferred = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Common constructor interface for driver classes
|
|
|
|
*
|
|
|
|
* @param array $config - Connection parameters for the specified backend
|
|
|
|
*/
|
|
|
|
abstract public function __construct(array $config = []);
|
2016-08-31 12:18:46 -04:00
|
|
|
}
|