Documentation
¶
Index ¶
- func Decrement(parameters ...interface{})
- func Flush()
- func Forever(key string, value string)
- func Forget(key string)
- func Get(key string) interface{}
- func GetBool(key string) bool
- func GetDuration(key string) time.Duration
- func GetFloat64(key string) float64
- func GetInt(key string) int
- func GetInt32(key string) int32
- func GetInt64(key string) int64
- func GetIntSlice(key string) []int
- func GetObject(key string, wanted interface{})
- func GetString(key string) string
- func GetStringMap(key string) map[string]interface{}
- func GetStringMapString(key string) map[string]string
- func GetStringMapStringSlice(key string) map[string][]string
- func GetStringSlice(key string) []string
- func GetTime(key string) time.Time
- func GetUint(key string) uint
- func GetUint32(key string) uint32
- func GetUint64(key string) uint64
- func Has(key string) bool
- func Increment(parameters ...interface{})
- func InitWithCacheStore(store Store)
- func IsAlive() error
- func Set(key string, obj interface{}, expireTime time.Duration)
- type RedisStore
- func (s *RedisStore) Decrement(parameters ...interface{})
- func (s *RedisStore) Flush()
- func (s *RedisStore) Forever(key string, value string)
- func (s *RedisStore) Forget(key string)
- func (s *RedisStore) Get(key string) string
- func (s *RedisStore) Has(key string) bool
- func (s *RedisStore) Increment(parameters ...interface{})
- func (s *RedisStore) IsAlive() error
- func (s *RedisStore) Set(key string, value string, expireTime time.Duration)
- type Service
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDuration ¶
func GetFloat64 ¶
func GetIntSlice ¶
func GetStringMap ¶
func GetStringMapString ¶
func GetStringMapStringSlice ¶
func GetStringSlice ¶
func InitWithCacheStore ¶
func InitWithCacheStore(store Store)
Types ¶
type RedisStore ¶
type RedisStore struct {
RedisClient *redis.RedisClient
KeyPrefix string
}
func NewRedisStore ¶
func NewRedisStore(address string, username string, password string, db int) *RedisStore
func (*RedisStore) Decrement ¶
func (s *RedisStore) Decrement(parameters ...interface{})
func (*RedisStore) Flush ¶
func (s *RedisStore) Flush()
func (*RedisStore) Forever ¶
func (s *RedisStore) Forever(key string, value string)
func (*RedisStore) Forget ¶
func (s *RedisStore) Forget(key string)
func (*RedisStore) Get ¶
func (s *RedisStore) Get(key string) string
func (*RedisStore) Has ¶
func (s *RedisStore) Has(key string) bool
func (*RedisStore) Increment ¶
func (s *RedisStore) Increment(parameters ...interface{})
func (*RedisStore) IsAlive ¶
func (s *RedisStore) IsAlive() error
Click to show internal directories.
Click to hide internal directories.