Source for file ICacheStorage.php

Documentation is available at ICacheStorage.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 storage.
  17. 17:  *
  18. 18:  * @copyright  Copyright (c) 2004, 2010 David Grudl
  19. 19:  * @package    Nette\Caching
  20. 20:  */
  21. 21: interface 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:     function read($key);
  30. 30:  
  31. 31:     /**
  32. 32:      * Writes item into the cache.
  33. 33:      * @param  string key
  34. 34:      * @param  mixed  data
  35. 35:      * @param  array  dependencies
  36. 36:      * @return void 
  37. 37:      */
  38. 38:     function write($key$dataarray $dependencies);
  39. 39:  
  40. 40:     /**
  41. 31: /**
  42. 32:      * Removes item from the cache.
  43. 33:      * @param  string key
  44. 34:      * @return void 
  45. 44:      */
  46. 45:     function remove($key);
  47. 46:  
  48. 47:     /**
  49. 48:      * Removes items from the cache by conditions.
  50. 49:      * @param  array  conditions
  51. 50:      * @return void 
  52. 51:      */
  53. 52:     function clean(array $conds);
  54. 53:  
  55. 54: }