redis

package
v0.0.0-...-e168591 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2017 License: MIT, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

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

func NewClient

func NewClient(server, password string) *RedisClient

func (*RedisClient) ActiveCount

func (c *RedisClient) ActiveCount() int

func (*RedisClient) BRPop

func (c *RedisClient) BRPop(key string, timeout_secs int) (string, error)

func (*RedisClient) ClearAll

func (c *RedisClient) ClearAll()

清除所有在线用户信息

func (*RedisClient) Close

func (c *RedisClient) Close()

关闭redis连接池

func (*RedisClient) GetAll

func (c *RedisClient) GetAll(key string)

获取所有在线用户

func (*RedisClient) GetOne

func (c *RedisClient) GetOne(key, id string)

根据用户ID获取单个用户

func (*RedisClient) Kick

func (c *RedisClient) Kick(key string, id string)

踢出某个用户

Jump to

Keyboard shortcuts

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