Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
ErrCacheMiss is raised when item is not found in cache
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface {
Get(ctx context.Context, key string) ([]byte, error)
Set(ctx context.Context, key string, value []byte, duration time.Duration) error
Remove(ctx context.Context, key string) error
}
Storage describes cache storage contract
func BigCache ¶ added in v0.0.2
BigCache initializes a bigcache implementation wrapper
Source Files
¶
- bigcache.go
- redis.go
- storage.go
Click to show internal directories.
Click to hide internal directories.