'redis' => array(
'cluster' => true,
'default' => array(
'host' => '172.21.107.247',
'port' => 6379,
),
'redis1' => array(
'host' => '172.21.107.248',
'port' => 6379,
),
Session::put('test', 124);
IlluminateSupportFacadesSession IlluminateSupportFacadesFacade IlluminateSessionFacade::app['session']->put IlluminateSessionFacade::app['session']为IlluminateSessionSessionManager IlluminateSupportManager::__call
$this->app['config']['session.driver']
IlluminateSessionSessionManager::IlluminateSessionSessionManager
public function __construct(array $servers = array())
{
if (isset($servers['cluster']) && $servers['cluster'])
{
$this->clients = $this->createAggregateClient($servers);
}
else
{
$this->clients = $this->createSingleClients($servers);
}
}
protected function createAggregateClient(array $servers)
{
$servers = array_except($servers, array('cluster'));
return array('default' => new Client(array_values($servers)));
}
protected function addNodeToRing(&$ring, $node, $totalNodes, $replicas, $weightRatio)
{
$nodeObject = $node['object'];
$nodeHash = $this->getNodeHash($nodeObject);
$replicas = (int) round($weightRatio * $totalNodes * $replicas);
for ($i = 0; $i < $replicas; $i++) {
$key = crc32("$nodeHash:$i");
$ring[$key] = $nodeObject;
}
}
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有