Categorygithub.com/boxgo/redisstore/v3
modulepackage
3.0.1
Repository: https://github.com/boxgo/redisstore.git
Documentation: pkg.go.dev

# README

redisstore

GoDoc Build Status Coverage Status Go Report Card

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 and KeyGenFunc 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

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author