Namespaces

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • None
  • PHP

Classes

  • Cache
  • OutputHelper

Interfaces

  • IStorage
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Nette Framework (http://nette.org)
 5:  *
 6:  * Copyright (c) 2004, 2011 David Grudl (http://davidgrudl.com)
 7:  *
 8:  * For the full copyright and license information, please view
 9:  * the file license.txt that was distributed with this source code.
10:  */
11: 
12: namespace Nette\Caching;
13: 
14: use Nette;
15: 
16: 
17: 
18: /**
19:  * Cache storage.
20:  *
21:  * @author     David Grudl
22:  */
23: interface IStorage
24: {
25: 
26:     /**
27:      * Read from cache.
28:      * @param  string key
29:      * @return mixed|NULL
30:      */
31:     function read($key);
32: 
33:     /**
34:      * Writes item into the cache.
35:      * @param  string key
36:      * @param  mixed  data
37:      * @param  array  dependencies
38:      * @return void
39:      */
40:     function write($key, $data, array $dependencies);
41: 
42:     /**
43:      * Removes item from the cache.
44:      * @param  string key
45:      * @return void
46:      */
47:     function remove($key);
48: 
49:     /**
50:      * Removes items from the cache by conditions.
51:      * @param  array  conditions
52:      * @return void
53:      */
54:     function clean(array $conds);
55: 
56: }
57: 
Nette Framework 2.0beta1 API API documentation generated by ApiGen 2.3.0