You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
884 B

2 years ago
  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\TaggableCacheItemInterface;
  12. /**
  13. * @author Tobias Nyholm <tobias.nyholm@gmail.com>
  14. */
  15. interface PhpCacheItem extends HasExpirationTimestampInterface, TaggableCacheItemInterface
  16. {
  17. /**
  18. * Get the current tags. These are not the same tags as getPrevious tags. This
  19. * is the tags that has been added to the item after the item was fetched from
  20. * the cache storage.
  21. *
  22. * WARNING: This is generally not the function you want to use. Please see
  23. * `getPreviousTags`.
  24. *
  25. * @return array
  26. */
  27. public function getTags();
  28. }