Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis is a representation of the redis datastore
func Init ¶
func Init(config *config.RedisConfig) (Redis, error)
Init creates a new db connection with given settings
func (*Redis) BumpHitCount ¶
BumpHitCount updates the hit number on a certain link
func (*Redis) CreateLink ¶
CreateLink stores a new link into database
func (*Redis) DeleteLink ¶
DeleteLink removes a link from the database
func (*Redis) GetAllLinks ¶
GetAllLinks returns an unpaginated list of current links
Click to show internal directories.
Click to hide internal directories.