public function write($priority, $message) {
		$config = $this->_config + $this->_classes;

		return function($params) use ($config) {
			$params += ['timestamp' => strtotime('now')];
			$key = $config['key'];
			$key = is_callable($key) ? $key($params) : Text::insert($key, $params);

			$cache = $config['cache'];
			return $cache::write($config['config'], $key, $params['message'], $config['expiry']);
		};
	}
public function write($priority, $message) {
		$config = $this->_config + $this->_classes;

		return function($params) use ($config) {
			$params += ['timestamp' => strtotime('now')];
			$key = $config['key'];
			$key = is_callable($key) ? $key($params) : Text::insert($key, $params);

			$cache = $config['cache'];
			return $cache::write($config['config'], $key, $params['message'], $config['expiry']);
		};
	}
public function write ( $ priority , $ message ) { $ config = $ this -> _config + $ this -> _classes ; return function ( $ params ) use ( $ config ) { $ params += [ 'timestamp' => strtotime ( 'now' ) ] ; $ key = $ config [ 'key' ] ; $ key = is_callable ( $ key ) ? $ key ( $ params ) : Text :: insert ( $ key , $ params ) ; $ cache = $ config [ 'cache' ] ; return $ cache :: write ( $ config [ 'config' ] , $ key , $ params [ 'message' ] , $ config [ 'expiry' ] ) ; } ; }
Writes the message to the configured cache adapter.

@param string $priority
@param string $message
@return \Closure Function returning boolean `true` on successful write, `false` otherwise.
Writes the message to the configured cache adapter .