ckcr4lyf / kiryuu

A highly performant HTTP bittorrent tracker (WIP)
Do What The F*ck You Want To Public License
13 stars 3 forks source link

Make caching a config option #30

Open ckcr4lyf opened 1 year ago

ckcr4lyf commented 1 year ago

Currently we cache announces in redis as a key, so we can GET it instead of ZRANGE on seeders & leechers, to imporove performance.

Of course, nothing is free, and for us this results in larger memory usage by redis (for caching of course).

While kiryuu is targeting performance, we should not assume the compromises that a user is willing to make (CPU vs RAM), depends on their available resources.

As such, we should allow deciding whether to enable the cache or not using a config option (compile time?)