Documentation ¶
Index ¶
- Variables
- func GetFloatValueFromCache(key string) (retorno float64)
- func GetIntValueFromCache(key string) (retorno int)
- func GetStringValueFromCache(key string) (retorno string)
- func GetValueFromCache(key string) interface{}
- func Option(typ string) cache.Options
- func PutIntoCache(key string, value interface{})
- func PutIntoCacheWithTimeout(key string, timeoutInSeconds int, value interface{}) error
- func RemoveFromCache(key string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Memory Option Memory = cache.Options{} // File Option File = cache.Options{ Adapter: "file", AdapterConfig: conf.Cfg.Section("").Key("cache_adpter_config").Value(), } // Redis Option Redis = cache.Options{ Adapter: "redis", AdapterConfig: conf.Cfg.Section("").Key("cache_adpter_config").Value(), } // Memcache Option Memcache = cache.Options{ Adapter: "memcache", AdapterConfig: conf.Cfg.Section("").Key("cache_adpter_config").Value(), } )
Functions ¶
func GetFloatValueFromCache ¶
GetFloatValueFromCache gets an float value from the system's cache
func GetIntValueFromCache ¶
GetIntValueFromCache gets an int value from the system's cache
func GetStringValueFromCache ¶
GetStringValueFromCache gets an string value from the system's cache
func GetValueFromCache ¶
func GetValueFromCache(key string) interface{}
GetValueFromCache gets a value from the system's cache
func PutIntoCache ¶
func PutIntoCache(key string, value interface{})
PutIntoCache puts a value at system's cache
func PutIntoCacheWithTimeout ¶
PutIntoCache puts a value at system's cache
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.