Skip to content

Commit

Permalink
Adjustment to capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
hepplerj committed Sep 21, 2023
1 parent ebe6bb2 commit f945797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func NewServer(ctx context.Context) *Server {
// Set up the in-memory cache
memcached, err := memory.NewAdapter(
memory.AdapterWithAlgorithm(memory.LRU),
memory.AdapterWithCapacity(int(math.Pow(1000, 3))), // 1000^3 = gigabyte
memory.AdapterWithCapacity(int(math.Pow(1000, 2))), // 1000^3 = gigabyte
)
if err != nil {
log.Fatal("error setting up memory cache:", err)
Expand Down

0 comments on commit f945797

Please sign in to comment.