DdlCache.php 844 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\DB\Adapter;
  7. use Magento\Framework\Cache\Frontend\Decorator\TagScope;
  8. use Magento\Framework\App\Cache\Type\FrontendPool;
  9. /**
  10. * Cache segment for DDL operations in database adapter
  11. */
  12. class DdlCache extends TagScope
  13. {
  14. /**
  15. * Cache type code unique among all cache types
  16. */
  17. const TYPE_IDENTIFIER = 'db_ddl';
  18. /**
  19. * Cache tag used to distinguish the cache type from all other cache
  20. */
  21. const CACHE_TAG = 'DB_DDL';
  22. /**
  23. * Constructor
  24. *
  25. * @param FrontendPool $cacheFrontendPool
  26. */
  27. public function __construct(FrontendPool $cacheFrontendPool)
  28. {
  29. parent::__construct($cacheFrontendPool->get(self::TYPE_IDENTIFIER), self::CACHE_TAG);
  30. }
  31. }