We recommend using the configuration (via config/app.php
file) below rather than the contents of this package.
<?php
return [
'components' => [
'session' => [
'class' => \yii\redis\Session::class,
'as session' => [
'class' => \craft\behaviors\SessionBehavior::class,
]
]
]
];
To install, use composer:
composer require flipboxfactory/craft-session-redis
Merge the following (or a variation of) configuration to your config/app.php
file.
<?php
return [
'components' => [
'redis' => [
'class' => yii\redis\Connection::class,
'hostname' => getenv('REDIS_HOSTNAME')
],
'session' => [
'class' => flipbox\craft\session\Redis::class,
'keyPrefix' => 'session'
]
]
];
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.