Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EndpointFlagName = withFlagPrefix("endpoint") PasswordFlagName = withFlagPrefix("password") DBFlagName = withFlagPrefix("db") EvictionFlagName = withFlagPrefix("eviction") )
Functions ¶
func CLIFlags ¶
func CLIFlags(envPrefix, category string) []cli.Flag
CLIFlags ... used for Redis backend configuration category is used to group the flags in the help output (see https://cli.urfave.org/v2/examples/flags/#grouping)
Types ¶
type Config ¶
Config ... user configurable
func ReadConfig ¶
func ReadConfig(ctx *cli.Context) Config
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store ... Redis storage backend implementation (This not safe for concurrent usage)
func (*Store) BackendType ¶
func (r *Store) BackendType() store.BackendType
func (*Store) Get ¶
Get ... retrieves a value from the Redis store. Returns nil if the key is not found vs. an error if the key is found but the value is not retrievable.
Click to show internal directories.
Click to hide internal directories.