README ¶ Redis Cache Backend Redis Backend for github.com/gowool/cache Installation go get -u github.com/gowool/rediscachebe License Distributed under MIT License, please see license file within the code for more details. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Backend func NewBackend(prefix string, client redis.UniversalClient) Backend func (b Backend) Del(ctx context.Context, key string) error func (b Backend) DelAll(ctx context.Context) (err error) func (b Backend) Get(ctx context.Context, key string) ([]byte, error) func (b Backend) Set(ctx context.Context, key string, value []byte, ttl time.Duration) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Backend ¶ type Backend struct { // contains filtered or unexported fields } func NewBackend ¶ func NewBackend(prefix string, client redis.UniversalClient) Backend func (Backend) Del ¶ func (b Backend) Del(ctx context.Context, key string) error func (Backend) DelAll ¶ func (b Backend) DelAll(ctx context.Context) (err error) func (Backend) Get ¶ func (b Backend) Get(ctx context.Context, key string) ([]byte, error) func (Backend) Set ¶ func (b Backend) Set(ctx context.Context, key string, value []byte, ttl time.Duration) error Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.