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 v1.0.0
BigCache initializes a bigcache implementation wrapper
Click to show internal directories.
Click to hide internal directories.