ledis 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.

1.2 KiB

session-ledis Build Status

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


go get gitea.com/tango/session-ledis

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(ledistore.Options{
                Host:    "",
                DbIndex: 0,
                MaxAge:  30 * time.Minute,
    o.Get("/", new(SessionAction))

Getting Help