# README
redisstore
A session store backend for gorilla/sessions - src.
Features
- Support Redis Sentinel, Cluster, Standalone
- Support secure cookie
- Support json, gob serializer or custom serializer
- Support
MaxLength
,KeyPrefix
andKeyGenFunc
options
Installation
go get github.com/boxgo/redisstore
Requirements
Depends on the go-redis/redis Redis library.
Example
client := redis.NewUniversalClient(&redis.UniversalOptions{
Addrs: []string{"localhost:6379"},
DB: 0,
})
store, err := NewStoreWithUniversalClient(client,
WithKeyPairs([]byte("test")),
WithKeyPrefix("session_"),
WithSerializer(&serializer.JSONSerializer{}),
)
# Packages
No description provided by the author