redis

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

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
}

Session .

func Sessions

func Sessions(c *cache.Config) *Session

Sessions new a redis connection for session storage

func (*Session) Exist

func (s *Session) Exist(key string) (exist bool)

Exist .

func (*Session) Get

func (s *Session) Get(key string) (val interface{})

Get .

func (*Session) Remove

func (s *Session) Remove(key string) (err error)

Remove .

func (*Session) Set

func (s *Session) Set(key string, val interface{}) (err error)

Set .

Jump to

Keyboard shortcuts

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