Source for file MemcachedStorage.php
Documentation is available at MemcachedStorage.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: */
- 29: /**
- 30: * Memcached storage.
- 31: *
- 35: */
- 37: {
- 38: /**#@+ internal cache structure */
- 43: /**#@-*/
- 53: /**
- 54: * Checks if Memcached extension is available.
- 56: */
- 58: {
- 60: }
- 65: {
- 68: }
- 73: }
- 77: /**
- 78: * Read from cache.
- 81: */
- 83: {
- 88: // meta structure:
- 89: // array(
- 90: // data => stored data
- 91: // delta => relative (sliding) expiration
- 92: // df => array of dependent files (file => timestamp)
- 93: // consts => array of constants (const => [value])
- 94: // )
- 96: // verify dependencies
- 102: }
- 103: }
- 104: }
- 107: //clearstatcache();
- 112: }
- 113: }
- 114: }
- 118: }
- 121: }
- 125: /**
- 126: * Writes item into the cache.
- 131: */
- 133: {
- 135: throw new NotSupportedException('Tags, priority and dependent items are not supported by MemcachedStorage.');
- 136: }
- 147: }
- 150: }
- 151: }
- 154: //clearstatcache();
- 157: }
- 158: }
- 163: }
- 164: }
- 167: }
- 171: /**
- 172: * Removes item from the cache.
- 175: */
- 177: {
- 179: }
- 183: /**
- 184: * Removes items from the cache by conditions & garbage collector.
- 187: */
- 189: {
- 195: }
- 198: }
- 200: }