public static function increment($name, $key, $offset = 1, array $options = []) {
		$options += ['conditions' => null];

		if (is_callable($options['conditions']) && !$options['conditions']()) {
			return false;
		}
		try {
			$adapter = static::adapter($name);
		} catch (ConfigException $e) {
			return false;
		}
		$key = static::key($key);
		$params = compact('key', 'offset');

		return Filters::run(get_called_class(), __FUNCTION__, $params, function($params) use ($adapter) {
			return $adapter->increment($params['key'], $params['offset']);
		});
	}
public static function increment($name, $key, $offset = 1, array $options = []) {
		$options += ['conditions' => null];

		if (is_callable($options['conditions']) && !$options['conditions']()) {
			return false;
		}
		try {
			$adapter = static::adapter($name);
		} catch (ConfigException $e) {
			return false;
		}
		$key = static::key($key);
		$params = compact('key', 'offset');

		return Filters::run(get_called_class(), __FUNCTION__, $params, function($params) use ($adapter) {
			return $adapter->increment($params['key'], $params['offset']);
		});
	}
public static function increment ( $ name , $ key , $ offset = 1 , array $ options = [ ] ) { $ options += [ 'conditions' => null ] ; if ( is_callable ( $ options [ 'conditions' ] ) && ! $ options [ 'conditions' ] ( ) ) { return false ; } try { $ adapter = static :: adapter ( $ name ) ; } catch ( ConfigException $ e ) { return false ; } $ key = static :: key ( $ key ) ; $ params = compact ( 'key' , 'offset' ) ; return Filters :: run ( get_called_class ( ) , __FUNCTION__ , $ params , function ( $ params ) use ( $ adapter ) { return $ adapter -> increment ( $ params [ 'key' ] , $ params [ 'offset' ] ) ; } ) ; }
Performs a increment operation on specified numeric cache item
from the given cache configuration.

@param string $name Name of the cache configuration to use.
@param string $key Key of numeric cache item to increment
@param integer $offset Offset to increment - defaults to 1.
@param array $options Options for this method.
- `'conditions'`: A function or item that must return or evaluate to
`true` in order to continue operation.
@return integer|boolean Item's new value on successful increment, false otherwise.
@filter
Performs a increment operation on specified numeric cache item from the given cache configuration .