package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Aug 4, 2021
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package store provides persitence layer.
View Source
const DefaultDatabaseConnect = "localhost:6379"
DefaultDatabaseConnect is the default redis connect scheme
([[db:]password@]host:port)
BlockedPingBakkoff ping redis with backoff retry if redis is not reachabe
Setup redis context and client
store.Setup(ctx.Background(), "db:password@host:port")
store.Setup(ctx.Background(), "0:password@localhost:6379")
store.Setup(ctx.Background(), "password@localhost:6379")
store.Setup(ctx.Background(), "localhost:6379")
Hitable is the Hits interface
NewHits returns a new hits bag.
type Hits struct {
Key string
}
Hits is a hits bag identified by a Key
Reset deletes key of hits bag
Top returns the most popular hit in hits bag
Source Files
¶
Click to show internal directories.
Click to hide internal directories.