TestAppCacheEngine.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * Test Suite Test App Cache Engine class.
  4. *
  5. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  6. * Copyright (c) Cake Software Foundation, Inc. (http://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. (http://cakefoundation.org)
  13. * @link http://cakephp.org CakePHP(tm) Project
  14. * @since 1.3.0
  15. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  16. */
  17. /**
  18. * Class TestAppCacheEngine
  19. *
  20. */
  21. namespace TestApp\Cache\Engine;
  22. use Cake\Cache\CacheEngine;
  23. class TestAppCacheEngine extends CacheEngine
  24. {
  25. public function write($key, $value)
  26. {
  27. if ($key === 'fail') {
  28. return false;
  29. }
  30. }
  31. public function read($key)
  32. {
  33. }
  34. public function increment($key, $offset = 1)
  35. {
  36. }
  37. public function decrement($key, $offset = 1)
  38. {
  39. }
  40. public function delete($key)
  41. {
  42. }
  43. public function clear($check)
  44. {
  45. }
  46. public function clearGroup($group)
  47. {
  48. }
  49. }