Skip to content
ABANDONED: This package is no longer maintained
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.scrutinizer.yml
CHANGELOG.md
LICENSE
README.md
composer.json

README.md

IMPORANT NOTICE

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

Latest Version Software License Quality Score Total Downloads

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.

You can’t perform that action at this time.