cache

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2016 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

*

  • Copyright 2015 @ z3q.net.
  • name : cache.go
  • author : jarryliu
  • date : -- :
  • description : 为应用提供缓存
  • history :

*

  • Copyright 2014 @ z3q.net.
  • name :
  • author : jarryliu
  • date : 2014-02-05 21:53
  • description :
  • history :

*

  • Copyright 2015 @ z3q.net.
  • name : partner_cache
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2014 @ z3q.net.
  • name :
  • author : jarryliu
  • date : 2014-02-05 21:53
  • description :
  • history :

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultMaxSeconds int64 = 300 //默认存储300秒

)

Functions

func DelPartnerCache

func DelPartnerCache(partnerId int)

func GetDropOptionsOfCategory

func GetDropOptionsOfCategory(partnerId int) []byte

获取分类下拉选项

func GetKVS

func GetKVS() gof.Storage

Get Key-value storage

func GetPartnerApiInfo

func GetPartnerApiInfo(partnerId int) *partner.ApiInfo

获取API 信息

func GetPartnerIdByApiId

func GetPartnerIdByApiId(apiId string) int

根据API ID获取商户ID

func GetPartnerIdByHost

func GetPartnerIdByHost(host string) int

根据主机头识别会员编号

func GetPartnerSiteConf

func GetPartnerSiteConf(partnerId int) *partner.SiteConf

获取商户站点配置

func GetPartnerSiteConfCK

func GetPartnerSiteConfCK(partnerId int) string

设置商户站点配置

func GetShopCheckboxs

func GetShopCheckboxs(partnerId int, chks string) []byte

func GetShopDropList

func GetShopDropList(partnerId int, selected int) []byte

func GetShopsJson

func GetShopsJson(partnerId int) []byte

func GetValuePartnerCache

func GetValuePartnerCache(partnerId int) *partner.ValuePartner

获取商户信息缓存

func GetValuePartnerCacheCK

func GetValuePartnerCacheCK(partnerId int) string

设置商户信息缓存

func Initialize

func Initialize(kvStorage gof.Storage)

Types

This section is empty.

Jump to

Keyboard shortcuts

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