Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swithek/sessionup-redisstore
Redis session store implementation for sessionup
https://github.com/swithek/sessionup-redisstore
Last synced: 6 days 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 (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-14T19:49:59.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T02:13:01.882Z (5 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
[![Build status](https://travis-ci.org/swithek/sessionup-redisstore.svg?branch=master)](https://travis-ci.org/swithek/sessionup-redisstore)
[![GoDoc](https://godoc.org/github.com/swithek/sessionup-redisstore?status.png)](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)
```