https://github.com/flipboxfactory/craft-session-redis
ABANDONED: This package is no longer maintained
https://github.com/flipboxfactory/craft-session-redis
Last synced: over 1 year ago
JSON representation
ABANDONED: This package is no longer maintained
- Host: GitHub
- URL: https://github.com/flipboxfactory/craft-session-redis
- Owner: flipboxfactory
- License: mit
- Created: 2018-09-20T03:13:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-03T18:08:28.000Z (over 7 years ago)
- Last Synced: 2025-01-03T15:26:15.237Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## IMPORANT NOTICE
We recommend using the configuration (via `config/app.php` file) below rather than the contents of this package.
```
[
'session' => [
'class' => \yii\redis\Session::class,
'as session' => [
'class' => \craft\behaviors\SessionBehavior::class,
]
]
]
];
```
# Redis session component for Craft CMS
[](https://github.com/flipboxfactory/craft-session-redis/releases)
[](LICENSE.md)
[](https://scrutinizer-ci.com/g/flipboxfactory/craft-session-redis)
[](https://packagist.org/packages/flipboxfactory/craft-session-redis)
## 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.
```
[
'redis' => [
'class' => yii\redis\Connection::class,
'hostname' => getenv('REDIS_HOSTNAME')
],
'session' => [
'class' => flipbox\craft\session\Redis::class,
'keyPrefix' => 'session'
]
]
];
```
## Contributing
Please see [CONTRIBUTING](https://github.com/flipboxfactory/craft-session-redis/blob/master/CONTRIBUTING.md) for details.
## Credits
- [Flipbox Digital](https://github.com/flipbox)
- [Contributors](https://github.com/flipboxfactory/craft-session-redis/graphs/contributors)
## License
The MIT License (MIT). Please see [License File](https://github.com/flipboxfactory/craft-session-redis/blob/master/LICENSE) for more information.