PhpCachePool.php 729 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /*
  3. * This file is part of php-cache organization.
  4. *
  5. * (c) 2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace Cache\Adapter\Common;
  11. use Cache\TagInterop\TaggableCacheItemPoolInterface;
  12. /**
  13. * @author Tobias Nyholm <tobias.nyholm@gmail.com>
  14. */
  15. interface PhpCachePool extends TaggableCacheItemPoolInterface
  16. {
  17. /**
  18. * {@inheritdoc}
  19. *
  20. * @return PhpCacheItem
  21. */
  22. public function getItem($key);
  23. /**
  24. * {@inheritdoc}
  25. *
  26. * @return array|\Traversable|PhpCacheItem[]
  27. */
  28. public function getItems(array $keys = []);
  29. }