Permalink
Browse files

Note about unset

  • Loading branch information...
1 parent 15b0e0d commit 50d23abbad40bc7ad1fcce88083665b0914d56c3 @evert committed Dec 21, 2011
Showing with 10 additions and 2 deletions.
  1. +10 −2 proposed/objectcache.md
View
@@ -55,10 +55,12 @@ To fix this, this document proposes a very simple standard interface.
/**
* Deletes an item from the cache.
*
+ * This method must succeed, even if the item did not exist.
+ *
* @param string $key
* @return void
*/
- function unset($key);
+ function delete($key);
/**
@@ -126,7 +128,7 @@ For these cases the Multiple interface may be implemented.
* @param array $key
* @return void
*/
- function unsetMultiple($keys);
+ function deleteMultiple($keys);
/**
* Check for multiple items if they appear in the cache.
@@ -141,6 +143,12 @@ For these cases the Multiple interface may be implemented.
}
+If the backend does not natively implement bulk operations, it can still
+be easily emulated. The following trait may serve as an example:
+
+trait
+
+
## Notes
* This document does not define how to handle error conditions, such as the

0 comments on commit 50d23ab

Please sign in to comment.