ConfigCacheInterface.php 577 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\ObjectManager;
  7. /**
  8. * Interface \Magento\Framework\ObjectManager\ConfigCacheInterface
  9. *
  10. */
  11. interface ConfigCacheInterface
  12. {
  13. /**
  14. * Retrieve configuration from cache
  15. *
  16. * @param string $key
  17. * @return array
  18. */
  19. public function get($key);
  20. /**
  21. * Save config to cache
  22. *
  23. * @param array $config
  24. * @param string $key
  25. * @return void
  26. */
  27. public function save(array $config, $key);
  28. }