redis store for session
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lunny Xiao 54d5e6b68f
bug fixed
7 years ago
LICENSE BSD LICENSE 8 years ago bug fixed 7 years ago
redis.go bug fixed 7 years ago
redis_test.go BSD LICENSE 8 years ago

session-redis Build Status

Session-redis is a store of session middleware for Tango stored session data via redis.


go get

Simple Example

package main

import (

type SessionAction struct {

func (a *SessionAction) Get() string {
    a.Session.Set("test", "1")
    return a.Session.Get("test").(string)

func main() {
    o := tango.Classic()
        Store: redistore.New(redistore.Options{
                Host:    "",
                DbIndex: 0,
                MaxAge:  30 * time.Minute,
    o.Get("/", new(SessionAction))

Getting Help


This project is under BSD License. See the LICENSE file for the full license text.