Increment the cached version. This invalidates the current cached results.

@return Garp_Cache_Store_Versioned $this
340209
public function incrementVersion() {
        $cache = Zend_Registry::get('CacheFrontend');
        $version = (int)$cache->load($this->_versionKey);
        $version += 1;
        $cache->save($version, $this->_versionKey);
        return $this;
    }
648002
public function increment($key, $value = 1)
    {
        return $this->memcached->increment($this->prefix.$key, $value);
    }
561224
public function newer()
	{
		return $this->live()
			->where('published_date', '>=', $this->published_date)
			->where('id', '<>', $this->id)
			->orderBy('published_date', 'asc')
			->orderBy('id', 'asc')
			->first();
	}
442253
public function moveHigher()
    {
        $higherItem = $this->higherItem();

        if ( ! $higherItem) return $this;

        $this->getConnection()->transaction(function() use ($higherItem) {

            $this->decrement($this->positionColumn());

            // Increment is not guaranteed to work with global scopes,
            $higherItem->{$this->positionColumn()} = $higherItem->{$this->positionColumn()} + 1;
            $higherItem->save();
        });

        return $this;
    }
162717
public function increment($context = null)
    {
        $poolUsage = $this->cache->get(self::CACHE_KEY) ?: 0;
        $this->logPoolUsage($poolUsage, $context);
        $this->cache->set(self::CACHE_KEY, $poolUsage + 1, $this->lifetime);
    }
1371743
public function getVersion()
    {
        return new Version(
            $this->major,
            $this->minor,
            $this->patch,
            $this->preRelease,
            $this->build
        );
    }
290259
public function clearCache()
    {
        static::$cache = [];

        // remove our "remembered" submitted value
        $this->submitted = null;

        // remove our "remembered" valid value
        foreach ($this->fields as $field) {
            if ($field instanceof AbstractFormField) {
                $field->clearCache();
            }
        }
        return $this;
    }
656950
public function update()
    {
        if ($this->newVersionAvailable === false
        || (!is_bool($this->newVersionAvailable) && !$this->hasUpdate())) {
            return false;
        }
        $this->backupPhar();
        $this->downloadPhar();
        $this->replacePhar();
        return true;
    }
295316
protected function updateNumPages()
    {
        $this->pages = ($this->limit == 0) ? 0 : (int) ceil($this->total / $this->limit);
        return $this;
    }
1197567
public function update()
    {
        self::$instance->reset();
        $this->sql('UPDATE');

        $numargs = func_num_args();

        if ($numargs > 0) {
            $arg_list = func_get_args();

            $this->oosql_multiFlag = true;

            $this->oosql_multi = $arg_list;

            for ($i = 0; $i < $numargs; $i++) {
                if ($i != 0 && $numargs > $i) {
                    $this->sql(',');
                }
                $this->sql(' ' . $arg_list[$i]);
            }
        } else {
            $this->sql(" $this->oosql_table");
        }

        $this->sql(' SET ');
        $this->oosql_where = null;
        return $this;
    }
961557
private function replaceCurrentVersionbyNewVersion()
    {
        $this->fs->copy($this->newInstallerFile, $this->currentInstallerFile, true);

        return $this;
    }
864959
public function major() : Version
    {
        if ('' !== $this->preRelease && 0 === $this->patch && 0 === $this->minor) {
            return new self($this->major, 0, 0);
        }

        return new self($this->major + 1, 0, 0);
    }
1138533
protected function addResult($key, $increment = 1)
    {
        if (!array_key_exists($key, $this->results)) {
            $this->results[$key] = 0;
        }
        $this->results[$key] += $increment;
        return $this;
    }
134181
public function refresh() {

		clearstatcache();

		$file = new File($this -> file -> getBasepath());
		$this -> file = $file -> entity();

		return $this;
	}
914610
public static function upgrade() {
		$sql = self::$sql;

		$sql::$logger->deactivate();
		try {
			$version = $sql->query(
				"SELECT version FROM meta LIMIT 1")['version'];
		} catch(SQLError $e) {
			$sql::$logger->activate();
			return self::upgrade_tables();
		}
		$sql::$logger->activate();

		if (0 <= version_compare($version, self::TABLE_VERSION))
			return self::$logger->debug(
				"Zapmin: Tables are up-to-date.");

		return self::upgrade_tables($version);
	}
184748
public function increment($key, $value = 1)
	{
		$this->storage[$key] = $this->storage[$key] + $value;

		return $this->storage[$key];
	}
249349
public function setAsDontCache()
    {
        $this->cacheControl->key('Expires', -1);
        $this->cacheControl->key('Pragma', 'no-cache');
        $this->cacheControl->key('Cache-Control', 'no-cache, must-revalidate');

        return $this;
    }