store

package
v0.0.0-...-359d32e Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

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

func NewMockStore

func NewMockStore() (*MockStore, error)

func (*MockStore) Close

func (this *MockStore) Close() error

func (*MockStore) Count

func (this *MockStore) Count() (int64, error)

func (*MockStore) Del

func (this *MockStore) Del(id string) error

func (*MockStore) Get

func (this *MockStore) Get(id string) (*sessions.Session, error)

func (*MockStore) Range

func (this *MockStore) Range(page, size int64) ([]*sessions.Session, error)

func (*MockStore) Set

func (this *MockStore) Set(id string, sess *sessions.Session) error

type RedisStore

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

func NewRedisStore

func NewRedisStore(addr string, password string) (*RedisStore, error)

NewRedisStore("127.0.0.1:6379","123456")

func (*RedisStore) Close

func (this *RedisStore) Close() error

func (*RedisStore) Count

func (this *RedisStore) Count() (int64, error)

func (*RedisStore) Del

func (this *RedisStore) Del(id string) error

func (*RedisStore) Get

func (this *RedisStore) Get(id string) (*sessions.Session, error)

func (*RedisStore) Range

func (this *RedisStore) Range(page, size int64) ([]*sessions.Session, error)

func (*RedisStore) Set

func (this *RedisStore) Set(id string, sess *sessions.Session) error

Jump to

Keyboard shortcuts

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