Source for file MemcachedStorage.php
Documentation is available at MemcachedStorage.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 11: */
- 15: /**
- 16: * Memcached storage.
- 17: *
- 20: */
- 22: {
- 23: /**#@+ @ignore internal cache structure */
- 27: /**#@-*/
- 37: /**
- 38: * Checks if Memcached extension is available.
- 40: */
- 42: {
- 44: }
- 49: {
- 52: }
- 57: }
- 61: /**
- 62: * Read from cache.
- 65: */
- 67: {
- 72: // meta structure:
- 73: // array(
- 74: // data => stored data
- 75: // delta => relative (sliding) expiration
- 76: // callbacks => array of callbacks (function, args)
- 77: // )
- 79: // verify dependencies
- 80: if (!empty($meta[self::META_CALLBACKS]) && !Cache::checkCallbacks($meta[self::META_CALLBACKS])) {
- 83: }
- 87: }
- 90: }
- 94: /**
- 95: * Writes item into the cache.
- 100: */
- 102: {
- 104: throw new NotSupportedException('Tags, priority and dependent items are not supported by MemcachedStorage.');
- 105: }
- 116: }
- 117: }
- 121: }
- 124: }
- 128: /**
- 129: * Removes item from the cache.
- 132: */
- 134: {
- 136: }
- 140: /**
- 141: * Removes items from the cache by conditions & garbage collector.
- 144: */
- 146: {
- 152: }
- 153: }
- 155: }