Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface {
ReadKeys(hashname string) ([]string, error)
ReadEntry(hashname string, key string) ([]byte, error)
ReadAllEntries(hashname string) (map[string]string, error)
ReadAllMatchingEntries(hashname string, match string) (map[string][]byte, error)
InsertEntry(hashname string, key string, entry []byte) error
DeleteEntry(hashname string, key string) (int, error)
}
Database functions to manage data stored in an external database
func NewRedisDB ¶
NewRedisDB returns an instance of a Redis database
func NewRedisDBWithConn ¶
NewRedisDBWithConn returns an instance of a Redis database using an existing connection
Source Files
¶
- database.go
- redis_database.go
Click to show internal directories.
Click to hide internal directories.