Skip to content

Predis // Configuration issue #612

@lexo13

Description

@lexo13

Configuration

  • PhpFastCache version:
    7.0.0

  • PhpFastCache API version:
    2.0.4

  • PHP version:
    PHP 7.0.30-0ubuntu0.16.04.1 (cli) ( NTS )

Describe the bug

#!/usr/bin/php

<?php
require __DIR__ . '/vendor/autoload.php';

use Phpfastcache\CacheManager;
$InstanceCache = CacheManager::getInstance('predis', [
    'host' => '51.254.154.211', //Default value
    'port' => 6379, //Default value
    'password' => null, //Default value
    'database' => null, //Default value
]);
PHP Fatal error:  Uncaught Phpfastcache\Exceptions\PhpfastcacheInvalidConfigurationException: Invalid option(s) for the config Phpfastcache\Config\ConfigurationOption: host, port, password, database in /home/franck/public_html/message_queuing_hh/vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Config/ConfigurationOption.php:115
Stack trace:
#0 /home/franck/public_html/message_queuing_hh/vendor/phpfastcache/phpfastcache/lib/Phpfastcache/CacheManager.php(564): Phpfastcache\Config\ConfigurationOption->__construct(Array)
#1 /home/franck/public_html/message_queuing_hh/vendor/phpfastcache/phpfastcache/lib/Phpfastcache/CacheManager.php(115): Phpfastcache\CacheManager::validateConfig(Array)
#2 /home/franck/public_html/message_queuing_hh/tt.php(10): Phpfastcache\CacheManager::getInstance('predis', Array)
#3 {main}
  thrown in /home/franck/public_html/message_queuing_hh/vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Config/ConfigurationOption.php on line 115

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions