Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisClient ¶
func NewRedisClient(addr, password string) *redis.Client
NewRedisClient creates a new Redis client
Types ¶
type CacheMiddleware ¶
CacheMiddleware struct holds the Redis client
func NewCacheMiddleware ¶
func NewCacheMiddleware(redisClient *redis.Client) *CacheMiddleware
NewCacheMiddleware initializes the caching middleware with a Redis client
func (*CacheMiddleware) NewReadThroughInboundInterceptor ¶
func (cm *CacheMiddleware) NewReadThroughInboundInterceptor() connect.UnaryInterceptorFunc
func (*CacheMiddleware) NewReadThroughOutboundInterceptor ¶
func (cm *CacheMiddleware) NewReadThroughOutboundInterceptor() connect.UnaryInterceptorFunc
Click to show internal directories.
Click to hide internal directories.