Documentation ¶
Index ¶
- Constants
- func Delete(key string) (string, error)
- func ExampleNJson()
- func ExampleNRedis()
- func Get(key string) (string, error)
- func GetConnection() redis.Conn
- func GetPool() *redis.Pool
- func InitPool(rawUrl string, maxIdle int, maxActive int, idleTimeout time.Duration) *redis.Pool
- func InitPoolConf(name string) *redis.Pool
- func Json2Map(s string) map[string]interface{}
- func Map2Json(data map[string]interface{}) string
- func Put(key string, value string) (string, error)
Constants ¶
View Source
const ( RAW_URL = "redis://127.0.0.1:6379" MAX_IDLE = 5 MAX_ACTIVE = 10 TIMEOUT = 120 )
Redis configuration
Variables ¶
This section is empty.
Functions ¶
func ExampleNJson ¶
func ExampleNJson()
func ExampleNRedis ¶
func ExampleNRedis()
func GetConnection ¶
func InitPoolConf ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.