ClearableCache.php 501 B

123456789101112131415161718192021
  1. <?php
  2. namespace Doctrine\Common\Cache;
  3. /**
  4. * Interface for cache that can be flushed.
  5. *
  6. * Intended to be used for partial clearing of a cache namespace. For a more
  7. * global "flushing", see {@see FlushableCache}.
  8. *
  9. * @link www.doctrine-project.org
  10. */
  11. interface ClearableCache
  12. {
  13. /**
  14. * Deletes all cache entries in the current cache namespace.
  15. *
  16. * @return bool TRUE if the cache entries were successfully deleted, FALSE otherwise.
  17. */
  18. public function deleteAll();
  19. }