garbados / dat-gateway

In-memory Dat to HTTP gateway
https://dat.bovid.space/
61 stars 13 forks source link

Cache & Resource Limits #2

Closed garbados closed 6 years ago

garbados commented 6 years ago

Currently, archives gathered by the gateway remain in memory until the gateway stops. The gateway does not have a way to dispose of old archives, or to limit the acceptance of new ones. It should.

garbados commented 6 years ago

The lru-cache module looks promising.

garbados commented 6 years ago

Implemented.