Documentation
¶
Index ¶
- func Del(key string) error
- func Exists(key string) bool
- func Get(key string) (string, error)
- func HDel(key, field string) error
- func HExists(key, field string) bool
- func HGet(key, field string) (string, error)
- func HGetALl(key, field string) (map[string]string, error)
- func HSet(key, field string, value interface{}) error
- func LPop(key string) (string, error)
- func LPush(key string, values ...interface{}) error
- func New(c Cache)
- func RPop(key string) (string, error)
- func Set(key string, val interface{}, expiration ...time.Duration) error
- type Cache
- type CacheComponent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface { Get(key string) (string, error) Set(key string, value interface{}, expiration ...time.Duration) error Del(key string) error Exists(key string) bool Expire(key string, expiration time.Duration) error HSet(key, field string, value interface{}) error HGet(key, field string) (string, error) HGetALl(key, field string) (map[string]string, error) HDel(key, field string) error HExists(key, field string) bool LPush(key string, values ...interface{}) error LPop(key string) (string, error) RPop(key string) (string, error) }
type CacheComponent ¶
type CacheComponent struct {
Cache Cache
}
Click to show internal directories.
Click to hide internal directories.