Documentation ¶
Index ¶
- type Packet
- type RedisObject
- func (rS *RedisObject) Delete() error
- func (rS *RedisObject) Get(key string) string
- func (rS *RedisObject) HKeys() []string
- func (rS *RedisObject) New(redis *redis.Client, prefix string, identifier string)
- func (rS *RedisObject) Set(key string, value string) error
- func (rS *RedisObject) SetM(set map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisObject ¶
type RedisObject struct {
// contains filtered or unexported fields
}
RedisObject Stores a hash-map in redis, provides basic crud-like actions
func (*RedisObject) Get ¶
func (rS *RedisObject) Get(key string) string
Get - Get value from the hash-map
func (*RedisObject) HKeys ¶
func (rS *RedisObject) HKeys() []string
HKeys - Get a list of the keys in the hash-map
func (*RedisObject) New ¶
func (rS *RedisObject) New(redis *redis.Client, prefix string, identifier string)
New - Initialize a new key
func (*RedisObject) Set ¶
func (rS *RedisObject) Set(key string, value string) error
Set - Set a value in the hash-map
func (*RedisObject) SetM ¶
func (rS *RedisObject) SetM(set map[string]interface{}) error
SetM - runs HMSET
Click to show internal directories.
Click to hide internal directories.