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

Function WithRedisCache

auth_jwt_redis.go:30–35  ·  view source on GitHub ↗

WithRedisCache configures client-side cache

(size int, ttl time.Duration)

Source from the content-addressed store, hash-verified

28
29// WithRedisCache configures client-side cache
30func WithRedisCache(size int, ttl time.Duration) RedisOption {
31 return func(config *store.RedisConfig) {
32 config.CacheSize = size
33 config.CacheTTL = ttl
34 }
35}
36
37// WithRedisPool configures connection pool
38func WithRedisPool(poolSize int, maxIdleTime, maxLifetime time.Duration) RedisOption {

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…