定制 cedricziel/l5-memcached-noversion 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cedricziel/l5-memcached-noversion

Composer 安装命令:

composer require cedricziel/l5-memcached-noversion

包简介

Removes the getVersion call from the Stock Laravel MemcachedConnector

README 文档

README

Dependency Status

The only difference from the default connector is the removed version command, which some third parties don't implement (AppEngine Managed VMs).

Configuration

Add the service provider to your application to replace the memcached connector singleton in the container:

  CedricZiel\MemcachedNoVersion\MemcachedNoversionServiceProvider::class,

AppEngine Flexible Environment

Google AppEngine Flexible comes with a memcache service, which is easily discoverable through the following environment variables:

MEMCACHE_PORT_11211_TCP_ADDR
MEMCACHE_PORT_11211_TCP_PORT

So in order to use this adapter with AppEngine flex, you need to adjust your config (config/cache.php) a bit:

        'memcached' => [
            'driver' => 'memcached',
            'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
            'sasl' => [
                env('MEMCACHED_USERNAME'),
                env('MEMCACHED_PASSWORD'),
            ],
            'options' => [
                // Memcached::OPT_CONNECT_TIMEOUT  => 2000,
            ],
            'servers' => [
                [
                    'host' => env('MEMCACHE_PORT_11211_TCP_ADDR', '127.0.0.1'),
                    'port' => env('MEMCACHE_PORT_11211_TCP_PORT', 11211),
                    'weight' => 100,
                ],
            ],
        ],

License

MIT

统计信息

  • 总下载量: 93
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固