Swift_Preferences::setCacheType PHP Method

setCacheType() public method

Set the type of cache to use (i.e. "disk" or "array").
public setCacheType ( string $type ) : Swift_Preferences
$type string
return Swift_Preferences
    public function setCacheType($type)
    {
        Swift_DependencyContainer::getInstance()->register('cache')->asAliasOf(sprintf('cache.%s', $type));
        return $this;
    }