PHP Class Pantheon\Terminus\Models\Redis

Inheritance: extends TerminusModel
Exibir arquivo Open project: pantheon-systems/terminus

Public Properties

Property Type Description
$site Site

Public Methods

Method Description
__construct ( $attributes = null, array $options = [] )
clear ( Environment $env ) : Workflow Clears the Redis cache on the named environment
disable ( ) Disables Redis caching
enable ( ) Enables Redis caching

Private Methods

Method Description
setStatus ( boolean $status ) Sets the site's allow_cacheserver setting to this value

Method Details

__construct() public method

public __construct ( $attributes = null, array $options = [] )
$options array

clear() public method

Clears the Redis cache on the named environment
public clear ( Environment $env ) : Workflow
$env Environment An object representing the environment on which to clear the Redis cache
return Workflow

disable() public method

Disables Redis caching
public disable ( )

enable() public method

Enables Redis caching
public enable ( )

Property Details

$site public_oe property

public Site,Pantheon\Terminus\Models $site
return Site