Source for file Cache.php
Documentation is available at Cache.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 6: * Copyright (c) 2004, 2009 David Grudl (http://davidgrudl.com)
- 7: *
- 8: * This source file is subject to the "Nette license" that is bundled
- 9: * with this package in the file license.txt.
- 10: *
- 11: * For more information please see https://nette.org
- 12: *
- 19: */
- 27: /**
- 28: * Implements the cache for a application.
- 29: *
- 33: */
- 35: {
- 36: /**#@+ dependency */
- 45: /**#@-*/
- 62: {
- 65: }
- 69: /**
- 70: * Returns cache storage.
- 72: */
- 74: {
- 76: }
- 80: /**
- 81: * Returns cache namespace.
- 83: */
- 85: {
- 87: }
- 91: /**
- 92: * Discards the internal cache.
- 94: */
- 96: {
- 98: }
- 102: /**
- 103: * Writes item into the cache.
- 104: * Dependencies are:
- 105: * priority => (int) priority
- 106: * expire => (timestamp) expiration
- 107: * refresh => (bool) use sliding expiration?
- 108: * tags => (array) tags
- 109: * files => (array|string) file names
- 110: * items => (array|string) cache items
- 111: * consts => (array|string) cache items
- 112: *
- 118: */
- 120: {
- 123: }
- 132: $dependencies
- 134: }
- 138: /**
- 139: * Removes items from the cache by conditions.
- 142: */
- 144: {
- 151: /**
- 152: * Update dependencies array.
- 155: */
- 157: {
- 160: }
- 166: }
- 167: }
- 173: }
- 174: }
- 175: }
- 179: /********************* interface \ArrayAccess ****************d*g**/
- 183: /**
- 184: * Inserts (replaces) item into the cache (\ArrayAccess implementation).
- 189: */
- 191: {
- 194: }
- 201: }
- 202: }
- 206: /**
- 207: * Retrieves the specified item from the cache or NULL if the key is not found (\ArrayAccess implementation).
- 211: */
- 213: {
- 216: }
- 220: }
- 224: }
- 228: /**
- 229: * Exists item in cache? (\ArrayAccess implementation).
- 233: */
- 235: {
- 238: }
- 243: }
- 247: /**
- 248: * Removes the specified item from the cache.
- 252: */
- 254: {
- 257: }
- 261: }
- 263: }
