Cronario\Storage\Redis::__construct PHP Method

__construct() public method

public __construct ( $namespace = null, Client $redis = null )
$redis Predis\Client
    public function __construct($namespace = null, Client $redis = null)
    {
        if (null === $redis) {
            $redis = new Client(self::DEFAULT_REDIS_SERVER);
        }
        if (null === $namespace) {
            $namespace = self::DEFAULT_NAMESPACE;
        }
        $this->redis = $redis;
        $this->namespace = $namespace;
    }