go_redis_session

package module
v0.0.0-...-b1417f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2019 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go_redis_session

Golang Redis Session类库.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	// contains filtered or unexported fields
}

func NewSession

func NewSession(redisoptions redis.Options) *Session

func (*Session) Delete

func (session *Session) Delete(context *gin.Context, key string) error

func (*Session) Get

func (session *Session) Get(context *gin.Context, key string) (string, error)

func (*Session) Set

func (session *Session) Set(context *gin.Context, key string, value string, expire time.Duration) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL