Skip to content

madsi1m/simplesamlphp-module-redis

This branch is 1 commit ahead of, 34 commits behind ColourboxDevelopment/simplesamlphp-module-redis:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6be201a · Feb 8, 2017

History

21 Commits
Jun 17, 2015
Jan 22, 2015
Feb 8, 2017
Jan 19, 2015
Feb 8, 2017
Feb 23, 2016
Jan 23, 2015
Jan 19, 2015
Jan 20, 2016
Jan 22, 2015
Apr 16, 2015
Jun 17, 2015
Jan 14, 2015
Jan 22, 2015
Jan 22, 2015

Repository files navigation

Redis module for simpleSAMLphp

Introduction

The Redis module implements the simpleSAMLphp datastore API, so Redis can be used for backend storage, i.e. session storage.

Setup

First thing to do is to set up your Redis server(s). This is out side the scope of this documentation.

Next you must install this module either by obtaining the tarball or by installing it via composer. The latter is recommended

composer.phar require vendor/simplesamlphp-module-redis 1.*

This will automatically install "predis/predis" as a dependency for ther module. If you downloaded the module yourself, remember to add predis/predis as a dependency in your composer.json.

See https://github.com/simplesamlphp/composer-module-installer for more information on how to insatll simpleSAMLphp modules via composer.

You can now enable the module by

touch /var/simplesamlphp/modules/redis/enable

and copy the config file

cp /var/simplesamlphp/modules/redis/config-templates/module_redis.php /var/simplesamlphp/config

Edit the config file so it fits your setup. The following options can be configured:

host : The hostname used for your Redis server prefix : Prefix of all keys saved in Redis. Default is 'simplasSALMphp' lifetime : The maximum tiem a key is stored in Redis. Default is 8 hours

You can now use redis a a valid simpleSAMLphp datastore. Use for session storage by setting the following in config.php

'store.type' => 'redis:Redis'

About

Reids module for simpleSAMLphp

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%