MCPcopy
hub / github.com/appleboy/gin-jwt / WithRedisAuth

Function WithRedisAuth

auth_jwt_redis.go:22–27  ·  view source on GitHub ↗

WithRedisAuth sets Redis authentication

(password string, db int)

Source from the content-addressed store, hash-verified

20
21// WithRedisAuth sets Redis authentication
22func WithRedisAuth(password string, db int) RedisOption {
23 return func(config *store.RedisConfig) {
24 config.Password = password
25 config.DB = db
26 }
27}
28
29// WithRedisCache configures client-side cache
30func WithRedisCache(size int, ttl time.Duration) RedisOption {

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…