package
module
Version:
v0.0.0-...-ec77967
Opens a new window with list of versions in this module.
Published: Dec 31, 2016
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
README
¶
Example usage of redisutil
package main
import "github.com/uccmen/redisutil"
var redisInstance *util.RedisInstance
func init() {
redisInstance = redisutil.NewRedis()
}
func isThingieExists(thingie string) bool {
conn := redisInstance.DB().Get()
defer conn.Close()
thingieKey := "thingie-hash:" + thingie
out, err := conn.Do("GET", thingieKey)
if err != nil {
return false
}
if out != nil {
return true
}
return false
}
Documentation
¶
type RedisInstance struct {
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.