定制 superrb/redis-handler 二次开发

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

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

superrb/redis-handler

Composer 安装命令:

composer require superrb/redis-handler

包简介

A handler for Redis to use for Session handling and caching in Symfony/Doctrine

关键字:

README 文档

README

Handler for using Redis with Symfony, Doctrine and Sessions

Storing sessions, application cache and doctrine cache in Redis can add some performance improvements, as well as centralising for multi server environments.

Installation

Step 1: Install the Bundle

composer require superrb/redis-handler

Add Superrb\RedisHandlerBundle\SuperrbRedisHandlerBundle::class => ['all' => true], to config/bundles.php

Step 2: Add environment variables

###> superrb/redis-handler ###
SUPERRB_REDIS_URL=redis://127.0.0.1:6379
SUPERRB_REDIS_PREFIX=uniqueprefix_
###< superrb/redis-handler ###

Configuration

Session Handling

config/packages/framework.yaml

# Set up sessions and cache
framework:
    session:
        handler_id: superrb_redis.session_handler

Symfony Cache

config/packages/cache.yaml

framework:
    cache:
        app: cache.adapter.redis
        system: cache.adapter.redis
        default_redis_provider: superrb_redis.service

Doctrine Cache

config/packages/doctrine.yaml

doctrine:
    orm:
        metadata_cache_driver:
            type: service
            id: superrb_redis.doctrine_cache
        result_cache_driver:
            type: service
            id: superrb_redis.doctrine_cache
        query_cache_driver:
            type: service
            id: superrb_redis.doctrine_cache

Issues and Troubleshooting

All issues: tech@superrb.com

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-08-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固