MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / ParseRedisOption

Function ParseRedisOption

common/redis.go:56–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56func ParseRedisOption() *redis.Options {
57 opt, err := redis.ParseURL(os.Getenv("REDIS_CONN_STRING"))
58 if err != nil {
59 FatalLog("failed to parse Redis connection string: " + err.Error())
60 }
61 return opt
62}
63
64func RedisSet(key string, value string, expiration time.Duration) error {
65 if DebugEnabled {

Callers

nothing calls this directly

Calls 2

FatalLogFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected