Skip to content

hellowords/gsr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

session-redis

session store backend for gorilla/sessions - src.

Requirements

Base on go-redis

Installation

go get -u github.com/hellowords/gsr

Example

client := redis.NewClient(&redis.Options{
		Addr:     "localhost:6379",
		Password: "",
		PoolSize: 10,
	})
store, err := NewRedisStoreWithDB(client, []byte("new-key"))
session ,err = store.Get(req,"session-key")
session.Values["hello"] = "bar"

Reference

github.com/boj/redistore

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages