Private
Public Access
1
0

change session driver to REDIS

This commit is contained in:
2017-01-03 16:11:19 +01:00
parent e387e21b34
commit 0effd8ab8d
3 changed files with 13 additions and 23 deletions

View File

@@ -41,7 +41,7 @@ twig:
debug: "%kernel.debug%"
strict_variables: "%kernel.debug%"
globals:
version: "0.36.18 (beta6)"
version: "0.37.18 (beta7)"
facebook_api: "%facebook.api%"
facebook_scope: "%facebook.scope%"
facebook_api_version: "%facebook.version%"

View File

@@ -1,19 +1,14 @@
# PDO Session Handler Configuration !!!!! --> moved to main config.yml
#framework:
# session:
# handler_id: session.handler.pdo
# Doctrine cache --> instead of PREDIS (gos_web_socket > client > storage > driver)
#doctrine_cache:
# providers:
# redis_cache:
# redis:
# host: localhost
# port: 6379
# database: 3
# websocket_cache_client:
# type: redis
# alias: gos_web_socket.client_storage.driver.redis
doctrine_cache:
providers:
redis_cache:
redis:
host: localhost
port: 6379
database: 3
websocket_cache_client:
type: redis
alias: gos_web_socket.client_storage.driver.redis
# SNC
snc_redis:
@@ -41,6 +36,7 @@ gos_web_socket:
session_handler: "@session.handler.pdo"
storage:
driver: "@gos_web_socket.client_storage.driver.predis"
decorator: "@gos_web_socket.client_storage.doctrine.decorator"
ttl: 28800 #(optionally) time to live if you use redis driver
prefix: client #(optionally) prefix if you use redis driver, create key "client:1" instead key "1"
periodic:
- "@mineseeker.periodic"

View File

@@ -19,12 +19,6 @@ services:
arguments:
- "@snc_redis.cache"
# config.yml --> gos_web_socket > storage > client > decorator
gos_web_socket.client_storage.doctrine.decorator:
class: Gos\Bundle\WebSocketBundle\Client\Driver\DoctrineCacheDriverDecorator
arguments:
- "@doctrine_cache.providers.doctrine.orm.default_result_cache"
mineseeker.periodic:
class: Mine\SeekerBundle\Periodic\MinePeriodic
tags: