MemoryCacheInterface.php 588 B

123456789101112131415161718
  1. <?php
  2. namespace Drupal\Core\Cache\MemoryCache;
  3. use Drupal\Core\Cache\CacheBackendInterface;
  4. use Drupal\Core\Cache\CacheTagsInvalidatorInterface;
  5. /**
  6. * Defines an interface for memory cache implementations.
  7. *
  8. * This has additional requirements over CacheBackendInterface and
  9. * CacheTagsInvalidatorInterface. Objects stored must be the same instance when
  10. * retrieved from cache, so that this can be used as a replacement for protected
  11. * properties and similar.
  12. *
  13. * @ingroup cache
  14. */
  15. interface MemoryCacheInterface extends CacheBackendInterface, CacheTagsInvalidatorInterface {}