public function connect()
    {
        $connection = $this->config->get('redis_connection');
        $params = array('prefix' => $this->config->get('redis_prefix').':');

        // connect to redis using the connection details in the config file
        $this->redis = new \Predis\Client(
            $connection,
            $params
            );
    }