Documentation
¶
Index ¶
Constants ¶
View Source
const RedisKeySep = "####"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
func NewRedisStore ¶
func NewRedisStore(cli *redis.Client, keyPrefix string) (*RedisStore, error)
// build new store from redis cli
func NewStore ¶
func NewStore(address string, pass string, keyPrefix string) (*RedisStore, error)
build new store from redis's address
func (*RedisStore) Load ¶
func (store *RedisStore) Load(name string, beginTime time.Time, endTime time.Time, lbs map[string]string, ) (cluster_counter.CounterValue, error)
load cluster's data for clients
func (*RedisStore) Store ¶
func (store *RedisStore) Store(name string, beginTime time.Time, endTime time.Time, lbs map[string]string, value cluster_counter.CounterValue, force bool) error
store client's data within cluster
Click to show internal directories.
Click to hide internal directories.