Fetch the repository succeeded.
基于swoft的neo4j数据库操作组件
composer require wunder/neo4j
'neo4j' => [
'class' =>\Wunder\Neo4j\Client::class,
'scheme' => "http",
'host' => '192.168.1.100',
'port' => 7474,
'username' => 'neo4j',
'password' => '123456',
],
'neo4j.pool' => [
'class' => \Wunder\Neo4j\Pool::class,
'client' => bean('neo4j'),
'minActive' => 10,
'maxActive' => 1000,
'maxWait' => 0,
'maxWaitTime' => 5,
'maxIdleTime' => 40,
]
neo4j
\Wunder\Neo4j\Client::class
。默认HTTP
。127.0.0.1
。7474
。neo4j.pool
client
。'neo4j' => [
'class' =>\Wunder\Neo4j\Client::class,
'scheme' => "http",
'hosts' => [
[
"scheme"=>"http",
"host"=>"192.168.1.100",
"port"=>"7474",
"username"=>"neo4j",
],
[
"scheme"=>"http",
"host"=>"192.168.1.200",
"port"=>"7474",
"username"=>"neo4j",
]
]
],
'neo4j.pool' => [
'class' => \Wunder\Neo4j\Pool::class,
'client' => bean('neo4j'),
'minActive' => 10,
'maxActive' => 1000,
'maxWait' => 0,
'maxWaitTime' => 5,
'maxIdleTime' => 40,
]
ps: host为必填,其他选填,默认获取单机的配置信息
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。