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/modules
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
..
analyze Speed up `enry.IsVendor` (#15213) 3 years ago
auth Add asymmetric JWT signing (#16010) 3 years ago
avatar Add Image Diff for SVG files (#14867) 3 years ago
base Fixed assert statements. (#16089) 3 years ago
cache Add LRU mem cache implementation (#16226) 3 years ago
charset Refactor renders (#15175) 3 years ago
context Redirect on bad CSRF instead of presenting bad page (#14937) 3 years ago
convert Introduce NotifySubjectType (#16320) 3 years ago
cron add cron job to delete old actions from database (#15688) 3 years ago
csv Refactor renders (#15175) 3 years ago
doctor Rework repository archive (#14723) 3 years ago
emoji Run processors on whole of text (#16155) 3 years ago
eventsource Hold the event source when there are no listeners (#15725) 3 years ago
generate Add asymmetric JWT signing (#16010) 3 years ago
git Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
gitgraph Fix bug on commit graph (#15517) 3 years ago
graceful Set self-adjusting deadline for connection writing (#16068) 3 years ago
hcaptcha hCaptcha Support (#12594) 4 years ago
highlight Replace ARCCache with TwoQueueCache to avoid patent issue (#16240) 3 years ago
httpcache Add ETag header (#15370) 3 years ago
httplib fix webhook timeout bug (#15613) 3 years ago
indexer Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
lfs Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
log Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
markup Update bluemonday to v1.0.15 (#16379) 3 years ago
matchlist Add Allow-/Block-List for Migrate & Mirrors (#13610) 4 years ago
metrics Prometheus endpoint (#5256) 6 years ago
migrations Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
nosql Fix setting redis db path (#15698) 3 years ago
notification Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
options Add StatDir and replace com.StatDir (#14099) 4 years ago
password Fixed assert statements. (#16089) 3 years ago
pprof Add golangci (#6418) 5 years ago
private Small refactoring of modules/private (#15947) 3 years ago
process Code Formats, Nits & Unused Func/Var deletions (#15286) 3 years ago
public Improve assets handler middleware (#15961) 3 years ago
queue Fixed assert statements. (#16089) 3 years ago
recaptcha Migrate to use jsoniter instead of encoding/json (#14841) 3 years ago
references Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
repofiles Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
repository Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
secret Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
session Migrate to use jsoniter instead of encoding/json (#14841) 3 years ago
setting Add LRU mem cache implementation (#16226) 3 years ago
ssh Prevent zombie processes (#16314) 3 years ago
storage Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
structs Creating a repo from a template repo via API (#15958) 3 years ago
svg Fix filepath basename on Windows for SVG bindata (#12241) 4 years ago
sync Fix missing unlock in uniquequeue (#9790) 5 years ago
task Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
templates Add custom emoji support (#16004) 3 years ago
test Move middlewares to web/middleware (#14480) 3 years ago
timeutil Fix display since time round (#14226) 3 years ago
translation Use index of the supported tags to choose user lang (#15452) 3 years ago
typesniffer Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
upload Update golangci-lint to version 1.31.0 (#13102) 4 years ago
uri Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244) 4 years ago
user Add gitea-vet (#10948) 4 years ago
util Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
validation Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
web Add tag protection (#15629) 3 years ago