Package cache is a middleware that provides the cache management of Tango.
Go to file
Lunny Xiao 889a7f7417
All checks were successful
checks / check and test (push) Successful in 37s
Fix vet
2023-04-20 15:48:07 +08:00
.gitea/workflows Use actions instead of drone 2023-04-20 11:19:51 +08:00
.vscode Use actions instead of drone 2023-04-20 11:19:51 +08:00
.gitignore modify from go-macaron/cache, test ok 2015-10-23 16:13:04 +08:00
cache_test.go migrate to gitea.com/lunny/tango 2019-03-26 15:52:55 +08:00
cache.go migrate to gitea.com/lunny/tango 2019-03-26 15:52:55 +08:00
file_test.go modify from go-macaron/cache, test ok 2015-10-23 16:13:04 +08:00
file.go Fix vet 2023-04-20 15:48:07 +08:00
go.mod Fix import 2020-03-30 11:21:01 +08:00
go.sum Fix import 2020-03-30 11:21:01 +08:00
LICENSE modify from go-macaron/cache, test ok 2015-10-23 16:13:04 +08:00
memory_test.go modify from go-macaron/cache, test ok 2015-10-23 16:13:04 +08:00
memory.go modify from go-macaron/cache, test ok 2015-10-23 16:13:04 +08:00
README.md Fix bug 2023-04-20 11:20:36 +08:00
utils.go modify from go-macaron/cache, test ok 2015-10-23 16:13:04 +08:00

Cache

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

Installation

go get gitea.com/tango/cache

Getting Help

More adapters

Default cache includes two adapters memory and file, you can find more adapters.

Credits

This package is a modified version of macaron/cache.

License

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