# README
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
# Functions
No description provided by the author
# Structs
GobSerializer go 特有编码方式,此种编码数据不能与其他语言通信.
JSONSerializer 使用json数据格式人为可读.
No description provided by the author
# Interfaces
Serializer.