You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/docs/content/doc/advanced
zeripath 2f725cbc9e
Add LRU mem cache implementation (#16226)
The current default memory cache implementation is unbounded in size and number of
objects cached. This is hardly ideal.

This PR proposes creating a TwoQueue LRU cache as the underlying cache for Gitea.
The cache is limited by the number of objects stored in the cache (rather than size)
for simplicity. The default number of objects is 50000 - which is perhaps too small
as most of our objects cached are going to be much less than 1kB.

It may be worth considering using a different LRU implementation that actively limits
sizes or avoids GC - however, this is just a beginning implementation.

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
..
adding-legal-pages.en-us.md Add Privacy Policy and Terms of Service Page (#9513) 5 years ago
clone-filter.en-us.md [Docs] Clone filters (#14555) 3 years ago
cmd-embedded.en-us.md Reformat docs (#13897) 4 years ago
config-cheat-sheet.en-us.md Add LRU mem cache implementation (#16226) 3 years ago
config-cheat-sheet.zh-cn.md Rework repository archive (#14723) 3 years ago
customizing-gitea.en-us.md Fix typo in customizing-gitea.en-us.md (#16362) 3 years ago
customizing-gitea.zh-cn.md Fix docs assets link (#16337) 3 years ago
environment-variables.en-us.md Update docs and comments to remove macaron (#14491) 3 years ago
environment-variables.zh-cn.md Update docs and comments to remove macaron (#14491) 3 years ago
external-renderers.en-us.md Add sanitizer rules per renderer (#16110) 3 years ago
hacking-on-gitea.zh-cn.md ZH-CN translation of Advanced part (#5090) 6 years ago
logging-documentation.en-us.md Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
mail-templates-us.md Fix documentation for the fallback mail subject (#15223) 3 years ago
make.fr-fr.md Reformat docs (#13897) 4 years ago
make.zh-cn.md Reformat docs (#13897) 4 years ago
protected-tags.en-us.md Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
repo-indexer.en-us.md Reformat docs (#13897) 4 years ago
repo-mirror.en-us.md Add push to remote mirror repository (#15157) 3 years ago
search-engines-indexation.en-us.md Reformat docs (#13897) 4 years ago
signing.en-us.md Specify relation between multiple signing options (#15496) 3 years ago
third-party-tools.zh-cn.md Reformat docs (#13897) 4 years ago