-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a81f52c
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |