Documentation ¶
Index ¶
- type MockStore
- func (this *MockStore) Close() error
- func (this *MockStore) Count() (int64, error)
- func (this *MockStore) Del(id string) error
- func (this *MockStore) Get(id string) (*sessions.Session, error)
- func (this *MockStore) Range(page, size int64) ([]*sessions.Session, error)
- func (this *MockStore) Set(id string, sess *sessions.Session) error
- type RedisStore
- func (this *RedisStore) Close() error
- func (this *RedisStore) Count() (int64, error)
- func (this *RedisStore) Del(id string) error
- func (this *RedisStore) Get(id string) (*sessions.Session, error)
- func (this *RedisStore) Range(page, size int64) ([]*sessions.Session, error)
- func (this *RedisStore) Set(id string, sess *sessions.Session) error
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 ¶
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
Click to show internal directories.
Click to hide internal directories.