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
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-23