Name: egg-session-redis
Owner: egg
Description: redis store for egg session
Created: 2017-03-01 02:48:20.0
Updated: 2018-04-26 06:58:43.0
Pushed: 2017-09-05 01:29:27.0
Homepage: null
Size: 7
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A session extension for store session in redis.
m i egg-session-redis egg-redis --save
This module dependent on egg-redis plugin, so we must enable both.
app_root}/config/plugin.js
rts.sessionRedis = {
able: true,
ckage: 'egg-session-redis',
rts.redis = {
able: true,
ckage: 'egg-redis',
If we only have one redis instance:
app_root}/config/config.default.js
rts.redis = {
ient: {
host: 'your redis host',
port: 'your redis port',
password: '',
db: '0',
ent:true
o need to set any sessionRedis config
If we have more than one redis instance, we need to configure which instance to be used as session store.
app_root}/config/config.default.js
rts.redis = {
ients: {
session: { /* config */ },
cache: { /* config */ },
rts.sessionRedis = {
me: 'session', // specific instance `session` as the session store
Please open an issue here.