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 (c) 2004, 2009 David Grudl (http://davidgrudl.com)
  7. 7:  *
  8. 8:  * This source file is subject to the "Nette license" that is bundled
  9. 9:  * with this package in the file license.txt.
  10. 10:  *
  11. 11:  * For more information please see https://nette.org
  12. 12:  *
  13. 13:  * @copyright  Copyright (c) 2004, 2009 David Grudl
  14. 14:  * @license    https://nette.org/license  Nette license
  15. 15:  * @link       https://nette.org
  16. 16:  * @category   Nette
  17. 17:  * @package    Nette\Caching
  18. 18:  * @version    $Id$
  19. 19:  */
  20. 20:  
  21. 21:  
  22. 22:  
  23. 23: /**
  24. 24:  * Cache storage.
  25. 25:  *
  26. 26:  * @author     David Grudl
  27. 27:  * @copyright  Copyright (c) 2004, 2009 David Grudl
  28. 28:  * @package    Nette\Caching
  29. 29:  */
  30. 30: interface ICacheStorage
  31. 31: {
  32. 32:  
  33. 33:     /**
  34. 34:      * Read from cache.
  35. 35:      * @param  string key
  36. 36:      * @return mixed|NULL
  37. 37:      */
  38. 38:     function read($key);
  39. 39:  
  40. 40:     /**
  41. 41:      * Writes item into the cache.
  42. 42:      * @param  string key
  43. 43:      * @param  mixed  data
  44. 44:      * @param  array  dependencies
  45. 45:      * @return bool  TRUE if no problem
  46. 46:      */
  47. 47:     function write($key$dataarray $dependencies);
  48. 48:  
  49. 49:     /**
  50. 40: /**
  51. 41:      * Removes item from the cache.
  52. 42:      * @param  string key
  53. 43:      * @return bool  TRUE if no problem
  54. 53:      */
  55. 54:     function remove($key);
  56. 55:  
  57. 56:     /**
  58. 57:      * Removes items from the cache by conditions.
  59. 58:      * @param  array  conditions
  60. 59:      * @return bool  TRUE if no problem
  61. 60:      */
  62. 61:     function clean(array $conds);
  63. 62:  
  64. 63: }