Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Memcached variable Memcached MemcachedConf // Redis variable Redis RedisConf )
View Source
var Mc = make(map[string]*persistence.MemcachedStore)
Mc variable
View Source
var Rd = make(map[string]*persistence.RedisStore)
Rd variable
Functions ¶
Types ¶
type MemcachedConf ¶
type MemcachedConf struct {
CacheOptions []MemcachedOption `json:"memcachedResources" bson:"memcachedResources"`
}
MemcachedConf struct
type MemcachedOption ¶
type MemcachedOption struct { Name string `json:"name" bson:"name"` Host []string `json:"host" bson:"host"` ExpirationSec int `json:"expiration" bson:"expiration"` }
MemcachedOption struct
func GetMemcachedResource ¶
func GetMemcachedResource(resourceName string) MemcachedOption
GetMemcachedResource function
type RedisConf ¶
type RedisConf struct {
CacheOptions []RedisOption `json:"redisResources" bson:"redisResources"`
}
RedisConf struct
type RedisOption ¶
type RedisOption struct { Name string `json:"name" bson:"name"` Host string `json:"host" bson:"host"` Password string `json:"password" bson:"password"` ExpirationSec int `json:"expiration" bson:"expiration"` }
RedisOption struct
func GetRedisResource ¶
func GetRedisResource(resourceName string) RedisOption
GetRedisResource function
Click to show internal directories.
Click to hide internal directories.