Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Nov 28, 2011
0 parents commit a81f52c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CacheInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

interface CacheInterface
{
function retrieve($key);

function contains($key);

function store($key, $data, $TTL = 0);

function remove($key);
}
14 changes: 14 additions & 0 deletions LogInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

interface LogInterface
{
function err($message);

function warn($message);

function notice($message);

function info($message);

function debug($message);
}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
What is this?
=============

Just two examples for interfaces for common tasks that might not cover every imaginable
use case but still would provide quite a lot of benefit if users could rely on any
lib they use having implemented these interfaces.

0 comments on commit a81f52c

Please sign in to comment.