Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Cache interface fix #211

Closed
wants to merge 1 commit into from

3 participants

@szicsu

The CacheProvider contained more public methods,
which were not defined in the Cache interface.

@szicsu szicsu Cache interface fix
The CacheProvider contained more public methods,
which were not defined in the Cache interface.
cf6330b
@doctrinebot
Collaborator

Hello,

thank you for positing this Pull Request. I have automatically opened an issue on our Jira Bug Tracker for you with the details of this Pull-Request. See the Link:

http://doctrine-project.org/jira/browse/DCOM-132

@beberlei
Owner

BC break.

@beberlei beberlei closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 1, 2012
  1. @szicsu

    Cache interface fix

    szicsu authored
    The CacheProvider contained more public methods,
    which were not defined in the Cache interface.
This page is out of date. Refresh to see the latest.
View
29 lib/Doctrine/Common/Cache/Cache.php
@@ -42,6 +42,21 @@
const STATS_MEMORY_AVAILIABLE = 'memory_available';
/**
+ * Set the namespace to prefix all cache ids with.
+ *
+ * @param string $namespace
+ * @return void
+ */
+ function setNamespace($namespace);
+
+ /**
+ * Retrieve the namespace that prefixes all cache ids.
+ *
+ * @return string
+ */
+ function getNamespace();
+
+ /**
* Fetches an entry from the cache.
*
* @param string $id cache id The id of the cache entry to fetch.
@@ -76,6 +91,20 @@ function save($id, $data, $lifeTime = 0);
function delete($id);
/**
+ * Delete all cache entries.
+ *
+ * @return boolean TRUE if the cache entries were successfully deleted, FALSE otherwise.
+ */
+ function deleteAll();
+
+ /**
+ * Deletes all cache entries.
+ *
+ * @return boolean TRUE if the cache entries were successfully flushed, FALSE otherwise.
+ */
+ function flushAll();
+
+ /**
* Retrieves cached information from data store
*
* The server's statistics array has the following values:
View
17 lib/Doctrine/Common/Cache/CacheProvider.php
@@ -45,10 +45,7 @@
private $namespaceVersion;
/**
- * Set the namespace to prefix all cache ids with.
- *
- * @param string $namespace
- * @return void
+ * {@inheritdoc}
*/
public function setNamespace($namespace)
{
@@ -56,9 +53,7 @@ public function setNamespace($namespace)
}
/**
- * Retrieve the namespace that prefixes all cache ids.
- *
- * @return string
+ * {@inheritdoc}
*/
public function getNamespace()
{
@@ -106,9 +101,7 @@ public function getStats()
}
/**
- * Deletes all cache entries.
- *
- * @return boolean TRUE if the cache entries were successfully flushed, FALSE otherwise.
+ * {@inheritdoc}
*/
public function flushAll()
{
@@ -116,9 +109,7 @@ public function flushAll()
}
/**
- * Delete all cache entries.
- *
- * @return boolean TRUE if the cache entries were successfully deleted, FALSE otherwise.
+ * {@inheritdoc}
*/
public function deleteAll()
{
Something went wrong with that request. Please try again.