Skip to content

Instantly share code, notes, and snippets.

@COil
Created October 16, 2017 14:12
Show Gist options
  • Save COil/2077726fb85e3dae711d867253d23e0d to your computer and use it in GitHub Desktop.
Save COil/2077726fb85e3dae711d867253d23e0d to your computer and use it in GitHub Desktop.
Redis full DNS with database and port example + SNC bundle basic config
# @see https://github.com/snc/SncRedisBundle/blob/master/Resources/doc/index.md
parameters:
app_version: 6.0.0
# Redis
snc_redis.dsn: redis://%redis_node_1%:%redis_port%/%redis_database%
# https://github.com/snc/SncRedisBundle/blob/master/Resources/doc/index.md
snc_redis:
clients:
default:
type: predis
alias: default
dsn: '%snc_redis.dsn%'
logging: false
session:
type: predis
alias: session
dsn: '%snc_redis.dsn%'
logging: false
session:
client: session
prefix: 'myapp_%app_version%_'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment