Documentation ¶
Index ¶
- Constants
- type BuntCache
- func (c *BuntCache) Create(db string) error
- func (c *BuntCache) Delete(key string) error
- func (c *BuntCache) Find(args ...Indexer) (*map[string]string, error)
- func (c *BuntCache) Index(columns []string) error
- func (c *BuntCache) Init() error
- func (c *BuntCache) Search(keyword string) (*map[string]string, error)
- func (c *BuntCache) Update(key, value string) error
- func (c *BuntCache) Watch(name string) error
- type Cache
- type Deploy
- type DeployInfo
- type Indexer
- type RedisCache
- func (rc *RedisCache) Delete(key string) (bool, error)
- func (rc *RedisCache) Exist(key string) (bool, error)
- func (rc *RedisCache) Get(key string) string
- func (rc *RedisCache) Llen(key string) int32
- func (rc *RedisCache) Lpush(key, value string) (bool, error)
- func (rc *RedisCache) Lrange(key, start, end string) ([]string, error)
- func (rc *RedisCache) Lrem(key, count, value string) (bool, error)
- func (rc *RedisCache) Mget(keys []string) interface{}
- func (rc *RedisCache) Sadd(key, value string) (bool, error)
- func (rc *RedisCache) Scard(key string) (int32, error)
- func (rc *RedisCache) Set(key, value string) (bool, error)
- func (rc *RedisCache) Smember(key string) ([]string, error)
- func (rc *RedisCache) Srem(key, value string) (bool, error)
Constants ¶
View Source
const ( UserName string = "userName" DcName string = "dcName" DcId string = "dcId" DeploymentName string = "deploymentName" OrgName string = "orgName" )
View Source
const (
BuntCacheName = "BuntDB"
)
View Source
const (
Sep string = " "
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuntCache ¶
func BuntCacheInstance ¶
func BuntCacheInstance() *BuntCache
type Deploy ¶
type Deploy struct {
Data []DeployInfo `json:"data"`
}
type DeployInfo ¶
type RedisCache ¶
type RedisCache struct {
// contains filtered or unexported fields
}
func NewRedisCache ¶
func NewRedisCache() *RedisCache
func RedisCacheInstance ¶
func RedisCacheInstance() *RedisCache
func (*RedisCache) Get ¶
func (rc *RedisCache) Get(key string) string
func (*RedisCache) Llen ¶
func (rc *RedisCache) Llen(key string) int32
func (*RedisCache) Mget ¶
func (rc *RedisCache) Mget(keys []string) interface{}
Click to show internal directories.
Click to hide internal directories.