flipboxfactory/craft-session-redis
Composer 安装命令:
composer require flipboxfactory/craft-session-redis
包简介
Craft session component
关键字:
README 文档
README
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,
]
]
]
];
Redis session component for Craft CMS
Installation
To install, use composer:
composer require flipboxfactory/craft-session-redis
Configure
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'
]
]
];
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 78
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-20