Categorygithub.com/go-macaron/cache
modulepackage
0.0.0-20200329073519-53bb48172687
Repository: https://github.com/go-macaron/cache.git
Documentation: pkg.go.dev

# README

cache

GitHub Workflow Status codecov GoDoc Sourcegraph

Middleware cache provides cache management for Macaron. It can use many cache adapters, including memory, file, Redis, Memcache, PostgreSQL, MySQL, Ledis and Nodb.

Installation

The minimum requirement of Go is 1.6 (1.7 if using Redis, 1.10 if using MySQL).

go get github.com/go-macaron/cache

Getting Help

Credits

This package is a modified version of beego/cache.

License

This project is under the Apache License, Version 2.0. See the LICENSE file for the full license text.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Cacher is a middleware that maps a cache.Cache service into the Macaron handler chain.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewCacher creates and returns a new cacher by given adapter name and configuration.
NewFileCacher creates and returns a new file cacher.
NewMemoryCacher creates and returns a new memory cacher.
Register registers a adapter.
No description provided by the author

# Structs

FileCacher represents a file cache adapter implementation.
Item represents a cache item.
MemoryCacher represents a memory cache adapter implementation.
MemoryItem represents a memory cache item.
Options represents a struct for specifying configuration options for the cache middleware.

# Interfaces

Cache is the interface that operates the cache data.