PHP Class ScriptFUSION\Porter\Connector\CachingConnector

Inheritance: implements Connector, implements ScriptFUSION\Porter\Cache\CacheToggle
Show file Open project: ScriptFUSION/Porter Class Usage Examples

Public Methods

Method Description
__construct ( Psr\Cache\CacheItemPoolInterface $cache = null )
disableCache ( )
enableCache ( )
fetch ( $source, EncapsulatedOptions $options = null )
fetchFreshData ( $source, EncapsulatedOptions $options = null )
isCacheEnabled ( )

Private Methods

Method Description
hash ( array $structure )

Method Details

__construct() public method

public __construct ( Psr\Cache\CacheItemPoolInterface $cache = null )
$cache Psr\Cache\CacheItemPoolInterface

disableCache() public method

public disableCache ( )

enableCache() public method

public enableCache ( )

fetch() public method

public fetch ( $source, EncapsulatedOptions $options = null )
$options ScriptFUSION\Porter\Options\EncapsulatedOptions

fetchFreshData() abstract public method

abstract public fetchFreshData ( $source, EncapsulatedOptions $options = null )
$options ScriptFUSION\Porter\Options\EncapsulatedOptions

isCacheEnabled() public method

public isCacheEnabled ( )