Commit 5fadc944 authored by Shawn Barratt's avatar Shawn Barratt
Browse files

add interface

parent 7bc2d63d
......@@ -9,6 +9,7 @@
"require-dev": {
"phpunit/phpunit": "~4.8"
},
"minimum-stability":"dev",
"autoload": {
"psr-4": {
"Ethereal\\": "lib"
......
......@@ -4,9 +4,15 @@ namespace Ethereal;
use Predis\Client;
class Cache extends Predis\Client
class Cache extends Predis\Client implements Ethereal\Cache\Interface
{
protected $namespace = '';
protected $server;
public function __construct($server)
{
$this->server = $server;
}
public function set($key, $val, $exp = null)
{
......
<?php
namespace Ethereal;
interface CacheInterface
{
public function get($term);
public function set($term, $value);
public function setNamespace($term);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment