Documentation ¶
Index ¶
- func SetupDatabase(redisURL string) *redis.Pool
- type RedisDatabase
- func (d *RedisDatabase) Delete(key string) error
- func (d *RedisDatabase) Exists(key string) (bool, error)
- func (d *RedisDatabase) Get(key string) ([]byte, error)
- func (d *RedisDatabase) GetKeys(pattern string) ([]string, error)
- func (d *RedisDatabase) HDelete(key string, hashKey string) (int, error)
- func (d *RedisDatabase) HExists(key string, hashKey string) (bool, error)
- func (d *RedisDatabase) HMGet(key string, fields ...string) (map[string]string, error)
- func (d *RedisDatabase) HMGetAll(key string) map[string]string
- func (d *RedisDatabase) HMGetKeys(key string) []string
- func (d *RedisDatabase) HMSet(key string, hashKey string, value []byte) error
- func (d *RedisDatabase) Incr(counterKey string) (int, error)
- func (d *RedisDatabase) Ping() error
- func (d *RedisDatabase) Set(key string, value []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupDatabase ¶
noinspection GoUnusedExportedFunction
Types ¶
type RedisDatabase ¶
type RedisDatabase struct {
// contains filtered or unexported fields
}
func GetDatabase ¶
func GetDatabase(pool *redis.Pool) RedisDatabase
noinspection GoUnusedExportedFunction
func (*RedisDatabase) Delete ¶
func (d *RedisDatabase) Delete(key string) error
func (*RedisDatabase) HDelete ¶
func (d *RedisDatabase) HDelete(key string, hashKey string) (int, error)
func (*RedisDatabase) HExists ¶
func (d *RedisDatabase) HExists(key string, hashKey string) (bool, error)
func (*RedisDatabase) HMGetKeys ¶
func (d *RedisDatabase) HMGetKeys(key string) []string
func (*RedisDatabase) HMSet ¶
func (d *RedisDatabase) HMSet(key string, hashKey string, value []byte) error
func (*RedisDatabase) Ping ¶
func (d *RedisDatabase) Ping() error
Click to show internal directories.
Click to hide internal directories.