-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jacob Christiansen
committed
Jan 19, 2015
1 parent
1394233
commit 9aed369
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
Redis Store module | ||
================= | ||
|
||
<!-- | ||
This file is written in Markdown syntax. | ||
For more information about how to use the Markdown syntax, read here: | ||
http://daringfireball.net/projects/markdown/syntax | ||
--> | ||
|
||
<!-- {{TOC}} --> | ||
|
||
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' |