承接 dracoblue/doctrine-cache-profile-storage 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

dracoblue/doctrine-cache-profile-storage

Composer 安装命令:

composer require dracoblue/doctrine-cache-profile-storage

包简介

Use a Doctrine Cache as ProfilerStorageInterface for Symfonys Web Profiler.

README 文档

README

By default the profiler for symfony stores it's data in file storage. If you want to use memcached or redis instead, you need a ProfileStorageInterface for this.

This library provides a simple Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface for any Doctrine\Common\Cache\CacheProvider.

Use Redis

Given:

  1. REDIS_HOST and REDIS_PORT are set as environment variables. You might use parameters instead, too.
  2. And redis extension is installed
  app.profiler.redis:
      class: \Redis
      calls:
        - [ pconnect, [ '%env(REDIS_HOST)%', '%env(REDIS_PORT)%' ]]

  app.profiler.redis_cache:
      class: Doctrine\Common\Cache\RedisCache
      calls:
        - [ setNamespace, [ "profiler-" ]]
        - [ setRedis, [ "@app.profiler.redis" ]]

  profiler.storage:
      class: DracoBlue\DoctrineCacheProfileStorage\DoctrineCacheProfileStorage
      arguments:
          - "@app.profiler.redis_cache"

Use Memcached

Given:

  1. MEMCACHED_HOST and MEMCACHED_PORT are set as environment variables. You might use parameters instead, too.
  2. And memcached extension is installed
  app.profiler.memcached:
      class: \Memcached
      arguments:
        - "profiler"
      calls:
        - [ addServer, [ '%env(MEMCACHED_HOST)%', '%env(MEMCACHED_PORT)%' ]]

  app.profiler.memcached_cache:
      class: Doctrine\Common\Cache\MemcachedCache
      calls:
        - [ setMemcached, [ "@app.profiler.memcached" ]]

  profiler.storage:
      class: DracoBlue\DoctrineCacheProfileStorage\DoctrineCacheProfileStorage
      arguments:
          - "@app.profiler.memcached_cache"

License

This work is copyright by DracoBlue (http://dracoblue.net) and licensed under the terms of MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-11-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固