Skip to content

Commit

Permalink
Merge pull request #2 from dragoonis/Cache
Browse files Browse the repository at this point in the history
[Cache] Adding isHit()
  • Loading branch information
Crell committed Jun 30, 2013
2 parents 0a78fc4 + 8051bb6 commit 5bbaed3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions proposed/PSR-Cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,11 @@ interface ItemInterface
function set($value = null, $ttl = null);

/**
* Validates the current state of the item in the cache.
*
* Checks the validity of a cache result. If the object is good (is not a
* miss, and meets all the standards set by the Implementing Library) then
* this function returns true.
* Confirms if the cache item exists in the cache
*
* @return bool
*/
function isValid();
function isHit();

/**
* Removes the current key from the cache.
Expand Down

0 comments on commit 5bbaed3

Please sign in to comment.