Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mantle ¶
type Mantle interface { Get(key string) (string, error) Set(key string, value interface{}) (bool, error) Delete(keys ...interface{}) (int, error) Setex(key string, duration int, value interface{}) (bool, error) MGet(keys ...interface{}) ([]string, error) MSet(keyValMap map[string]interface{}) (bool, error) Expire(key string, duration int) (bool, error) Execute(cmd string, args ...interface{}) (interface{}, error) //Set methods used by cassandra and redis Smembers(key string) ([]string, error) SAdd(key string, values ...interface{}) (bool, error) SRem(key string, value string) (bool, error) Sismember(key string, member string) (bool, error) Sismembers(key string, members []string) ([]bool, error) //stats methods StatsJSON() string }
only strings are supported
type Orm ¶
type Orm struct { //redis|memcache|cassandra Driver string //arrays of ip:port,ip:port HostAndPorts []string //pool size Capacity int //any other options thats needed for creating a connection Options map[string]string }
This struct is exported
func (*Orm) GetRedisConn ¶
override mantle and get a redis client
Click to show internal directories.
Click to hide internal directories.