Skip to content

Commit

Permalink
Added main interfaces to their own files
Browse files Browse the repository at this point in the history
This will allow people to actually use the interfaces.
  • Loading branch information
tedivm committed Feb 25, 2012
1 parent 9b1a7f5 commit 9e59ee3
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
12 changes: 12 additions & 0 deletions proposed/PSR/Cache/CacheFactory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

namespace PSR\Cache;

interface CacheFactory
{
/**
*
ÊÊÊ * @param string $key
ÊÊÊ * @return CacheItem
*/
function getCache($key);
}
30 changes: 30 additions & 0 deletions proposed/PSR/Cache/CacheItem.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
namespace PSR\Cache;

interface CacheItem
{
/**
*
* @return mixed
*/ÊÊÊÊÊÊÊ
function get();

/**
*
* @param mixed $value
* @param int $ttl
* @return bool
*/ ÊÊÊÊÊÊÊ
function set($value, $ttl = null);

/**
*
* @return bool
*/
function isMiss();

/**
*
* @return mixed
*/
function clear();
}

0 comments on commit 9e59ee3

Please sign in to comment.