Commit Graph

2 Commits

Author SHA1 Message Date
Dmytro Lytovchenko d34bd0b4d6
refactor: modernize cache.cc (#3108)
* Modernize cache.cc: Convert tr_cache to a class

* Modernize cache.cc: Replaced ptrArray with vector

* refactor: Cache now takes a tr_torrents reference

* refactor: add Key type to Cache

* refactor: avoid std::back_inserter

* refactor: add Cache::flushOldest()
2022-06-11 19:46:30 -05:00
Antoine Cœur 7ab2fbfbd6
Adopting .clang-format-include and .clang-format-ignore (#3047) 2022-05-13 18:48:33 -05:00