summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordi Boggiano <j.boggiano@seld.be>2016-11-14 22:29:30 +0100
committerGitHub <noreply@github.com>2016-11-14 22:29:30 +0100
commitdbc891ed87dd65bddde2d42caacde54d3dde208c (patch)
tree6a7fcb38100c00193fd233e813b8c975d053b92a
parentb9d0f9f3670615ed128e60600b50f3a2584e1250 (diff)
downloadfig-standards-dbc891ed87dd65bddde2d42caacde54d3dde208c.zip
fig-standards-dbc891ed87dd65bddde2d42caacde54d3dde208c.tar.gz
fig-standards-dbc891ed87dd65bddde2d42caacde54d3dde208c.tar.bz2
Rename exists to has for consistency with PSR-6
-rw-r--r--proposed/simplecache.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/proposed/simplecache.md b/proposed/simplecache.md
index dff97fa..ad160b5 100644
--- a/proposed/simplecache.md
+++ b/proposed/simplecache.md
@@ -182,16 +182,17 @@ interface CacheInterface
/**
* Identify if an item is in the cache.
- * NOTE: It is recommended that exists() is only to be used for cache warming type purposes
+ *
+ * NOTE: It is recommended that has() is only to be used for cache warming type purposes
* and not to be used within your live applications operations for get/set, as this method
- * is subject to a race condition where your exists() will return true and immediately after,
+ * is subject to a race condition where your has() will return true and immediately after,
* another script can remove it making the state of your app out of date.
*
* @param string $key The cache item key
*
* @return bool
*/
- public function exists($key);
+ public function has($key);
}
```