bench-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>
2021-07-10 23:54:15 +02:00
..
adding-legal-pages.en-us.md Add Privacy Policy and Terms of Service Page (#9513) 2020-01-14 14:34:40 +01:00
clone-filter.en-us.md [Docs] Clone filters (#14555) 2021-02-03 10:11:20 -05:00
cmd-embedded.en-us.md Reformat docs (#13897) 2020-12-09 07:47:06 +01:00
config-cheat-sheet.en-us.md Add LRU mem cache implementation (#16226) 2021-07-10 23:54:15 +02:00
config-cheat-sheet.zh-cn.md Rework repository archive (#14723) 2021-06-23 17:12:38 -04:00
customizing-gitea.en-us.md Fix typo in customizing-gitea.en-us.md (#16362) 2021-07-07 17:25:42 +02:00
customizing-gitea.zh-cn.md Fix docs assets link (#16337) 2021-07-04 15:56:40 +02:00
environment-variables.en-us.md Update docs and comments to remove macaron (#14491) 2021-01-29 16:35:30 +01:00
environment-variables.zh-cn.md Update docs and comments to remove macaron (#14491) 2021-01-29 16:35:30 +01:00
external-renderers.en-us.md Add sanitizer rules per renderer (#16110) 2021-06-23 17:09:51 -04:00
hacking-on-gitea.zh-cn.md ZH-CN translation of Advanced part (#5090) 2018-10-17 14:21:20 +03:00
logging-documentation.en-us.md Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
mail-templates-us.md Fix documentation for the fallback mail subject (#15223) 2021-03-31 11:36:21 -04:00
make.fr-fr.md Reformat docs (#13897) 2020-12-09 07:47:06 +01:00
make.zh-cn.md Reformat docs (#13897) 2020-12-09 07:47:06 +01:00
protected-tags.en-us.md Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
repo-indexer.en-us.md Reformat docs (#13897) 2020-12-09 07:47:06 +01:00
repo-mirror.en-us.md Add push to remote mirror repository (#15157) 2021-06-14 19:20:43 +02:00
search-engines-indexation.en-us.md Reformat docs (#13897) 2020-12-09 07:47:06 +01:00
signing.en-us.md Specify relation between multiple signing options (#15496) 2021-04-15 18:06:32 +02:00
third-party-tools.zh-cn.md Reformat docs (#13897) 2020-12-09 07:47:06 +01:00