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

Function WithRedisPool

auth_jwt_redis.go:38–44  ·  view source on GitHub ↗

WithRedisPool configures connection pool

(poolSize int, maxIdleTime, maxLifetime time.Duration)

Source from the content-addressed store, hash-verified

36
37// WithRedisPool configures connection pool
38func WithRedisPool(poolSize int, maxIdleTime, maxLifetime time.Duration) RedisOption {
39 return func(config *store.RedisConfig) {
40 config.PoolSize = poolSize
41 config.ConnMaxIdleTime = maxIdleTime
42 config.ConnMaxLifetime = maxLifetime
43 }
44}
45
46// WithRedisKeyPrefix sets the key prefix
47func WithRedisKeyPrefix(prefix string) RedisOption {

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…