mcfedr/memcached-bundle
Composer 安装命令:
composer require mcfedr/memcached-bundle
包简介
The smallest, simplest memcached bundle
README 文档
README
This is going to be the simplest bundle you have ever seen for memcached
Install
-
composer require mcfedr/memcached-bundle -
Update your Kernel
new Mcfedr\MemcachedBundle\McfedrMemcachedBundle()
Configuration
You can setup as many memcached connections as you need, although most of the time one is enough. You need to have at least one server for each connection.
Optionally you can make a connection persistent, this is recommended for better performance.
mcfedr_memcached:
connections:
main:
persistent_id: main
servers:
- host: 127.0.0.1
port: 11211
other:
servers:
- host: 10.0.0.10
port: 11211
- host: 10.0.0.11
port: 11211
- host: 10.0.0.12
port: 11211
Each connection will be available as a service called "mcfedr_memcached.$name".
So in the example there are two services:
mcfedr_memcached.mainmcfedr_memcached.other
统计信息
- 总下载量: 2.41k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-05-23