Documentation ¶
Index ¶
- Constants
- func InitMapping()
- func InitRedis()
- func InitServiceSql()
- type Redis
- func (r *Redis) DelToken(format, id string) (result int64, err error)
- func (r *Redis) GetMapping(zKey string) (mapping mapping.MappingDto, err error)
- func (r *Redis) GetServiceSql(sqlCode string) (serviceSql serviceSql.ServiceSqlDto, err error)
- func (r *Redis) GetToken(format, id string) (token string, err error)
- func (r *Redis) GetValue(key string) (string, error)
- func (r *Redis) GetValueAndRemove(key string) (string, error)
- func (r *Redis) SaveMapping(mappingDto mapping.MappingDto) (err error)
- func (r *Redis) SaveServiceSql(serviceSqlDto serviceSql.ServiceSqlDto) (err error)
- func (r *Redis) SetToken(format, id string, token string) (err error)
- func (r *Redis) SetValue(key string, value string, timeout ...int64) (err error)
Constants ¶
View Source
const (
Default_timeOut int64 = 0
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
var G_Redis *Redis
func (*Redis) GetMapping ¶
func (r *Redis) GetMapping(zKey string) (mapping mapping.MappingDto, err error)
func (*Redis) GetServiceSql ¶
func (r *Redis) GetServiceSql(sqlCode string) (serviceSql serviceSql.ServiceSqlDto, err error)
func (*Redis) SaveMapping ¶
func (r *Redis) SaveMapping(mappingDto mapping.MappingDto) (err error)
func (*Redis) SaveServiceSql ¶
func (r *Redis) SaveServiceSql(serviceSqlDto serviceSql.ServiceSqlDto) (err error)
Click to show internal directories.
Click to hide internal directories.