协议: 'memcached' => [ [ 'host' => '127.0.0.1', 'port' => 11211, '
weight' => 100 ], ], 你还可以设置 host 选项为 UNIX socket 路径,如果你这样做,port 选项应该置为 0: 'memcached' => [ [ 'host' => '/var/run/memcached/memcached.sock', 'port' => 0, '
weight' => 100 ], ], Redis 使用 Laravel 的 Redis 缓存之前,你需要通过 Composer 安装 predis/predis 包 (~1.0)。 想要了解更多关于 和嵌套 pet 对象(该对象包含 name 和 age 属 性)的 JSON 数据。如果 JSON 响应中包含其它额外键 seeJsonStructure 也不会失 败,例如,如果 pet 对象包含
weight 属性测试仍将通过。 你可以使用*来断言返回 JSON 结构包含一个列表,该列表中的每个数据项都包含至少如 下示例中列出的属性:
0 码力 |
377 页 |
4.56 MB
| 1 年前 3
’class’=>’CMemCache’, ’servers’=>array( array(’host’=>’server1’, ’port’=>11211, ’weight’=>60), array(’host’=>’server2’, ’port’=>11211, ’weight’=>40), ), ), ), ) 18 2 . F u n d a m e n t a l s I n t h e ab ov CMemCache’, ’servers’=>array( array(’host’=>’server1’, ’port’=>11211, ’weight’=>60), array(’host’=>’server2’, ’port’=>11211, ’weight’=>40), ), ), ), ); W h e n t h e ap p l i c at i on i s r u n n i
0 码力 |
164 页 |
1002.30 KB
| 1 年前 3
’class’=>’CMemCache’, ’servers’=>array( array(’host’=>’server1’, ’port’=>11211, ’weight’=>60), array(’host’=>’server2’, ’port’=>11211, ’weight’=>40), ), ), ), ) 20 2 . F u n d a m e n t a l s I n t h e ab ov CMemCache’, ’servers’=>array( array(’host’=>’server1’, ’port’=>11211, ’weight’=>60), array(’host’=>’server2’, ’port’=>11211, ’weight’=>40), ), ), ), ); W h e n t h e ap p l i c at i on i s r u n n i
0 码力 |
184 页 |
1.05 MB
| 1 年前 3
'host' => '127.0.0.1', 'port' => 11211,//必须是整形 //'weight' => 100 //权重memcached扩展 有效 ], //多台... ], ], /**
0 码力 |
245 页 |
720.67 KB
| 1 年前 3
'host' => '127.0.0.1', 'port' => 11211,//必须是整形 //'weight' => 100 //权重memcached扩展有效 ], //多台... ], ], /**
0 码力 |
143 页 |
1.54 MB
| 1 年前 3
服务器: 'memcached' => [ [ 'host' => '127.0.0.1', 'port' => 11211, '
weight' => 100 ], ], 你还可以设置 host 选项为 UNIX socket 路径,如果你这样做,port 选项应该置为 0: 'memcached' => [ [ 'host' => '/var/run/memcached/memcached.sock', 'port' => 0, '
weight' => 100 ], ], Redis 使用 Laravel 的 Redis 缓存之前,你需要通过 Composer 安装 predis/predis 包(~1.0)。 想要了解更多关于 pet 对象(该对象包含 name 和 age 属性)的 JSON 数据。如果 JSON 响应中包含其它额外键 seeJsonStructure 也不会失败,例如,如果 pet 对 象包含
weight 属性测试仍将通过。 你可以使用*来断言返回 JSON 结构包含一个列表,该列表中的每个数据项都包含至少如下示例中 列出的属性:
0 码力 |
691 页 |
9.37 MB
| 1 年前 3
'host' => '127.0.0.1', 'port' => 11211,//必须是整形 //'weight' => 100 //权重memcached扩展有效 ], //多台... ], ], /** //文件缓存
0 码力 |
251 页 |
973.37 KB
| 1 年前 3
协议: 'memcached' => [ [ 'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100 ], ], 你还可以设置 host 选项为 UNIX socket 路径,如果你这样做,port 选项应该置为 0: 'memcached' => [ [ 'host' => '/var/run/memcached/memcached.sock', 'port' => 0, 'weight' => 100 ], ], 1.1.3 Redis 使用 Laravel 的 Redis 缓存之前,你需要通过 Composer 安装 predis/predis 包(~1.0)。
0 码力 |
307 页 |
3.46 MB
| 1 年前 3
serializer supports both JSON and XML. If the client indicates acceptance of both JSON and XML with equal weight, JSON will be chosen. Other media types may be supported by overriding the default serializer via
0 码力 |
177 页 |
252.56 KB
| 1 年前 3