Documentation ¶
Index ¶
- Variables
- func Init()
- func MemcachedGetCategories(key string, categories *[]models.Category) (err error)
- func MemcachedGetInt64(key string) (ret int64, err error)
- func MemcachedGetPosts(key string, posts *[]models.Post) (err error)
- func MemcachedGetString(key string) (ret string, err error)
- func MemcachedGetTopics(key string, topics *[]models.Topic) (err error)
- func MemcachedSetCategories(key string, categories *[]models.Category) (err error)
- func MemcachedSetInt64(key string, val int64) (err error)
- func MemcachedSetPosts(key string, posts *[]models.Post) (err error)
- func MemcachedSetString(key string, val *string) (err error)
- func MemcachedSetTopics(key string, topics *[]models.Topic) (err error)
- func RedisGetCategories(key string, categories *[]models.Category) (err error)
- func RedisGetInt64(key string) (ret int64, err error)
- func RedisGetPosts(key string, posts *[]models.Post) (err error)
- func RedisGetString(key string) (ret string, err error)
- func RedisGetTopics(key string, topics *[]models.Topic) (err error)
- func RedisSetCategories(key string, categories *[]models.Category) (err error)
- func RedisSetInt64(key string, val int64) (err error)
- func RedisSetPosts(key string, posts *[]models.Post) (err error)
- func RedisSetString(key string, val *string) (err error)
- func RedisSetTopics(key string, topics *[]models.Topic) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Mc *memcache.Client
View Source
var Rd redis.Conn
Functions ¶
func MemcachedGetCategories ¶
func MemcachedGetInt64 ¶
func MemcachedGetString ¶
func MemcachedSetCategories ¶
func MemcachedSetInt64 ¶
func MemcachedSetString ¶
func RedisGetCategories ¶
func RedisGetInt64 ¶
func RedisGetString ¶
func RedisSetCategories ¶
func RedisSetInt64 ¶
func RedisSetString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.