Documentation
¶
Index ¶
- type Connection
- type ConnectionManager
- func (m *ConnectionManager) Add(name string, options *redis.Options)
- func (m *ConnectionManager) Exist(name string) bool
- func (m *ConnectionManager) Get(name string) *Connection
- func (m *ConnectionManager) Length() int
- func (m *ConnectionManager) Remove(name string)
- func (m ConnectionManager) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) DisconnectRedisClient ¶
func (c *Connection) DisconnectRedisClient() bool
func (*Connection) GetRedisClient ¶
func (c *Connection) GetRedisClient() *redis.Client
func (*Connection) ReconnectRedisClient ¶
func (c *Connection) ReconnectRedisClient()
type ConnectionManager ¶
type ConnectionManager struct {
// contains filtered or unexported fields
}
func NewConnectionManager ¶
func NewConnectionManager() *ConnectionManager
func (*ConnectionManager) Add ¶
func (m *ConnectionManager) Add(name string, options *redis.Options)
func (*ConnectionManager) Exist ¶
func (m *ConnectionManager) Exist(name string) bool
func (*ConnectionManager) Get ¶
func (m *ConnectionManager) Get(name string) *Connection
func (*ConnectionManager) Length ¶
func (m *ConnectionManager) Length() int
func (*ConnectionManager) Remove ¶
func (m *ConnectionManager) Remove(name string)
func (ConnectionManager) String ¶
func (m ConnectionManager) String() string
Click to show internal directories.
Click to hide internal directories.