Skip to content

Commit

Permalink
fix(backend): cache repos in memory (#274)
Browse files Browse the repository at this point in the history
* fix(backend): cache repos in memory using lru

Signed-off-by: Ayman Bagabas <[email protected]>

* fix(backend): use mutex instead of rwmutex

---------

Signed-off-by: Ayman Bagabas <[email protected]>
  • Loading branch information
aymanbagabas authored May 11, 2023
1 parent 2a97f93 commit 5580b5b
Show file tree
Hide file tree
Showing 5 changed files with 253 additions and 556 deletions.
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/charmbracelet/soft-serve

go 1.17
go 1.18

require (
github.com/alecthomas/chroma v0.10.0
Expand All @@ -24,6 +24,7 @@ require (
github.com/charmbracelet/ssh v0.0.0-20221117183211-483d43d97103
github.com/gobwas/glob v0.2.3
github.com/gogs/git-module v1.8.2
github.com/hashicorp/golang-lru/v2 v2.0.2
github.com/jmoiron/sqlx v1.3.5
github.com/lrstanley/bubblezone v0.0.0-20220716194435-3cb8c52f6a8f
github.com/muesli/mango-cobra v1.2.0
Expand Down
Loading

0 comments on commit 5580b5b

Please sign in to comment.