cache

package
v0.0.0-...-a64d9b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2020 License: GPL-3.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Init

func Init()

func MemcachedGetCategories

func MemcachedGetCategories(key string, categories *[]models.Category) (err error)

func MemcachedGetInt64

func MemcachedGetInt64(key string) (ret int64, err error)

func MemcachedGetPosts

func MemcachedGetPosts(key string, posts *[]models.Post) (err error)

func MemcachedGetString

func MemcachedGetString(key string) (ret string, err error)

func MemcachedGetTopics

func MemcachedGetTopics(key string, topics *[]models.Topic) (err error)

func MemcachedSetCategories

func MemcachedSetCategories(key string, categories *[]models.Category) (err error)

func MemcachedSetInt64

func MemcachedSetInt64(key string, val int64) (err error)

func MemcachedSetPosts

func MemcachedSetPosts(key string, posts *[]models.Post) (err error)

func MemcachedSetString

func MemcachedSetString(key string, val *string) (err error)

func MemcachedSetTopics

func MemcachedSetTopics(key string, topics *[]models.Topic) (err error)

func RedisGetCategories

func RedisGetCategories(key string, categories *[]models.Category) (err error)

func RedisGetInt64

func RedisGetInt64(key string) (ret int64, err error)

func RedisGetPosts

func RedisGetPosts(key string, posts *[]models.Post) (err error)

func RedisGetString

func RedisGetString(key string) (ret string, err error)

func RedisGetTopics

func RedisGetTopics(key string, topics *[]models.Topic) (err error)

func RedisSetCategories

func RedisSetCategories(key string, categories *[]models.Category) (err error)

func RedisSetInt64

func RedisSetInt64(key string, val int64) (err error)

func RedisSetPosts

func RedisSetPosts(key string, posts *[]models.Post) (err error)

func RedisSetString

func RedisSetString(key string, val *string) (err error)

func RedisSetTopics

func RedisSetTopics(key string, topics *[]models.Topic) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL