Source for file DummyStorage.php

Documentation is available at DummyStorage.php

  1. 1: <?php
  2. 2:  
  3. 3: /**
  4. 4:  * Nette Framework
  5. 5:  *
  6. 6:  * @copyright  Copyright (c) 2004, 2010 David Grudl
  7. 7:  * @license    http://nettephp.com/license  Nette license
  8. 8:  * @link       http://nettephp.com
  9. 9:  * @category   Nette
  10. 10:  * @package    Nette\Caching
  11. 11:  */
  12. 12:  
  13. 13:  
  14. 14:  
  15. 15: /**
  16. 16:  * Cache dummy storage.
  17. 17:  *
  18. 18:  * @copyright  Copyright (c) 2004, 2010 David Grudl
  19. 19:  * @package    Nette\Caching
  20. 20:  */
  21. 21: class DummyStorage extends Object implements ICacheStorage
  22. 22: {
  23. 23:  
  24. 24:     /**
  25. 25:      * Read from cache.
  26. 26:      * @param  string key
  27. 27:      * @return mixed|NULL
  28. 28:      */
  29. 29:     public function read($key)
  30. 30:     {
  31. 31:         return NULL;
  32. 32:     }
  33. 33:  
  34. 34:  
  35. 35:  
  36. 36:     /**
  37. 37:      * Writes item into the cache.
  38. 38:      * @param  string key
  39. 39:      * @param  mixed  data
  40. 40:      * @param  array  dependencies
  41. 41:      * @return void 
  42. 42:      */
  43. 43:     public function write($key$dataarray $dp)
  44. 44:     {
  45. 45:     }
  46. 46:  
  47. 47:  
  48. 48:  
  49. 49:     /**
  50. 36: /**
  51. 37:      * Removes item from the cache.
  52. 38:      * @param  string key
  53. 39:      * @return void 
  54. 53:      */
  55. 54:     public function remove($key)
  56. 55:     {
  57. 56:     }
  58. 57:  
  59. 58:  
  60. 59:  
  61. 60:     /**
  62. 61:      * Removes items from the cache by conditions & garbage collector.
  63. 62:      * @param  array  conditions
  64. 63:      * @return void 
  65. 64:      */
  66. 65:     public function clean(array $conds)
  67. 66:     {
  68. 67:     }
  69. 68:  
  70. 69: }