gorilla/sessions Store implementation for valkey
This implementation uses valkey-io/go-valkey as the client.
go get github.com/JensvandeWiel/valkeystore
package main
import (
"github.com/JensvandeWiel/valkeystore"
"github.com/gorilla/sessions"
"github.com/valkey-io/valkey-go"
)
func main() {
client, err := valkey.NewClient(valkey.ClientOption{
InitAddress: []string{"localhost:6379"},
})
if err != nil {
t.Fatal("failed to create valkey client", err)
}
defer client.Close()
store, err := valkeystore.NewValkeyStore(client)
if err != nil {
t.Fatal("failed to create redis store", err)
}
}
For more examples check the tests or godoc
This project is licensed under the MIT License - see the LICENSE file for details
Feel free to open a pull request.