TestAppCacheEngine.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * Test Suite Test App Cache Engine class.
  4. *
  5. * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
  6. * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  7. *
  8. * Licensed under The MIT License
  9. * For full copyright and license information, please see the LICENSE.txt
  10. * Redistributions of files must retain the above copyright notice
  11. *
  12. * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  13. * @link https://cakephp.org CakePHP(tm) Project
  14. * @since 1.3.0
  15. * @license https://opensource.org/licenses/mit-license.php MIT License
  16. */
  17. /**
  18. * TestAppCacheEngine
  19. */
  20. namespace TestApp\Cache\Engine;
  21. use Cake\Cache\CacheEngine;
  22. class TestAppCacheEngine extends CacheEngine
  23. {
  24. public function write($key, $value)
  25. {
  26. if ($key === 'fail') {
  27. return false;
  28. }
  29. }
  30. public function read($key)
  31. {
  32. }
  33. public function increment($key, $offset = 1)
  34. {
  35. }
  36. public function decrement($key, $offset = 1)
  37. {
  38. }
  39. public function delete($key)
  40. {
  41. }
  42. public function clear($check)
  43. {
  44. }
  45. public function clearGroup($group)
  46. {
  47. }
  48. }