Documentation ¶
Index ¶
Constants ¶
View Source
const KEY_PREFIX = "gin:cache:"
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrAlreadyExists = errors.New("already exists") )
Functions ¶
func New ¶
func New(o ...Options) gin.HandlerFunc
Types ¶
type InMemory ¶
type InMemory struct {
// contains filtered or unexported fields
}
func NewInMemory ¶
func NewInMemory() *InMemory
Click to show internal directories.
Click to hide internal directories.