https://github.com/swithek/sessionup-redisstore
Redis session store implementation for sessionup
https://github.com/swithek/sessionup-redisstore
Last synced: 4 months ago
JSON representation
Redis session store implementation for sessionup
- Host: GitHub
- URL: https://github.com/swithek/sessionup-redisstore
- Owner: swithek
- License: mit
- Created: 2020-09-29T16:07:15.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-14T19:49:59.000Z (over 4 years ago)
- Last Synced: 2024-12-28T15:29:20.079Z (6 months ago)
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sessionup-redisstore
[](https://travis-ci.org/swithek/sessionup-redisstore)
[](https://godoc.org/github.com/swithek/sessionup-redisstore)Redis session store implementation for [sessionup](https://github.com/swithek/sessionup)
## Installation
```
go get github.com/swithek/sessionup-redisstore
```## Usage
Create and activate a new RedisStore:
```go
// create redigo connection pool
pool := &redis.Pool{
Dial: func() (redis.Conn, error) {
return redis.Dial("tcp", "localhost:6379")
},
}store, err := redisstore.New(pool, "customers")
if err != nil {
// handle error
}manager := sessionup.NewManager(store)
```