Documentation ¶
Index ¶
- type Mysql
- type Redis
- func (f *Redis) Close()
- func (f *Redis) Get(key string) (string, error)
- func (f *Redis) GetAllHashTable(key string) (map[string]string, error)
- func (f *Redis) GetHashTable(key string, field string) (string, error)
- func (f *Redis) Set(key string, value string) error
- func (f *Redis) SetHashTable(key string, hashTable map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mysql ¶
type Mysql struct {
// contains filtered or unexported fields
}
func (*Mysql) GetCacheData ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func (*Redis) GetAllHashTable ¶
主要用这个,一次从redis中读出一个id对一个的所有hashTable。但是在key对应的数据量比较大的情况下,非常不推荐使用HGetAll
func (*Redis) SetHashTable ¶
Click to show internal directories.
Click to hide internal directories.