aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/cache/ut/cache_ut.cpp
Commit message (Collapse)AuthorAgeFilesLines
* add GetOrNull method to threadsafe cacheivanmautin2024-06-061-0/+21
| | | | 2c3ce3e36d35b563fe21b581380310ac84007f57
* add TThreadSafeLRUCacheWithSizeProvider wrapperivanmautin2024-06-061-0/+262
| | | | | | На данный момент никак нельзя создать thread-safe кэш с произвольным SizeProvider, из-за того, что это не позволяет сделать шаблон `TThreadSafeCache`, при этом отредактировтаь его тоже не удастся, так как для этого нужно передать дополнительный параметр `typename TSizeProvider`, что сломает обратную совместимость, так как шаблон принимает далее переменное число аргументов (см. [TThreadSafeCache](https://a.yandex-team.ru/arcadia/library/cpp/cache/thread_safe_cache.h?rev=rXXXXXX#L15)) В связи с этим добавлен еще один хелпер, для создания LRUCache с TSizeProvider 293511a33b45f23d8afc9ff217a817481401932c
* Add TotalSize and Size methodsivanmautin2024-05-061-2/+73
| | | | | | | | Раньше метод GetTotalSize() был только в TLRUList, хотя TSizeProvider присутствовал также в TLRUList Добавил GetTotalSize() во все листы (в том числе TLWList), а также метод GetSize(), который возвращает текущее количество Также добавил эти методы в сами TCache и TThreadSafeCache c103617d7259841e1c273cadd8dbf0bb019e52dc
* intermediate changesarcadia-devtools2022-02-181-0/+48
| | | | ref:5a427ceffcbeddcbaed23c62818445bd98632b96
* Restoring authorship annotation for <tldr@yandex-team.ru>. Commit 2 of 2.tldr2022-02-101-67/+67
|
* Restoring authorship annotation for <tldr@yandex-team.ru>. Commit 1 of 2.tldr2022-02-101-67/+67
|
* Restoring authorship annotation for <heios@yandex-team.ru>. Commit 2 of 2.heios2022-02-101-178/+178
|
* Restoring authorship annotation for <heios@yandex-team.ru>. Commit 1 of 2.heios2022-02-101-178/+178
|
* Restoring authorship annotation for <lucius@yandex-team.ru>. Commit 2 of 2.lucius2022-02-101-12/+12
|
* Restoring authorship annotation for <lucius@yandex-team.ru>. Commit 1 of 2.lucius2022-02-101-12/+12
|
* Restoring authorship annotation for <elviandante@yandex-team.ru>. Commit 2 of 2.elviandante2022-02-101-20/+20
|
* Restoring authorship annotation for <elviandante@yandex-team.ru>. Commit 1 of 2.elviandante2022-02-101-20/+20
|
* Restoring authorship annotation for <iddqd@yandex-team.ru>. Commit 2 of 2.iddqd2022-02-101-12/+12
|
* Restoring authorship annotation for <iddqd@yandex-team.ru>. Commit 1 of 2.iddqd2022-02-101-12/+12
|
* Restoring authorship annotation for <wd28@yandex-team.ru>. Commit 2 of 2.wd282022-02-101-2/+2
|
* Restoring authorship annotation for <wd28@yandex-team.ru>. Commit 1 of 2.wd282022-02-101-2/+2
|
* Restoring authorship annotation for <lapshov@yandex-team.ru>. Commit 2 of 2.lapshov2022-02-101-10/+10
|
* Restoring authorship annotation for <lapshov@yandex-team.ru>. Commit 1 of 2.lapshov2022-02-101-10/+10
|
* Restoring authorship annotation for <nkmakarov@yandex-team.ru>. Commit 2 of 2.nkmakarov2022-02-101-34/+34
|
* Restoring authorship annotation for <nkmakarov@yandex-team.ru>. Commit 1 of 2.nkmakarov2022-02-101-34/+34
|
* Restoring authorship annotation for <emazhukin@yandex-team.ru>. Commit 2 of 2.emazhukin2022-02-101-28/+28
|
* Restoring authorship annotation for <emazhukin@yandex-team.ru>. Commit 1 of 2.emazhukin2022-02-101-28/+28
|
* Restoring authorship annotation for <agorodilov@yandex-team.ru>. Commit 2 of 2.agorodilov2022-02-101-2/+2
|
* Restoring authorship annotation for <agorodilov@yandex-team.ru>. Commit 1 of 2.agorodilov2022-02-101-2/+2
|
* Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.yazevnul2022-02-101-10/+10
|
* Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.yazevnul2022-02-101-10/+10
|
* Restoring authorship annotation for Ivan Korostelev ↵Ivan Korostelev2022-02-101-7/+7
| | | | <ivan.korostelev@gmail.com>. Commit 2 of 2.
* Restoring authorship annotation for Ivan Korostelev ↵Ivan Korostelev2022-02-101-7/+7
| | | | <ivan.korostelev@gmail.com>. Commit 1 of 2.
* Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. ↵Vlad Yaroslavlev2022-02-101-5/+5
| | | | Commit 2 of 2.
* Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. ↵Vlad Yaroslavlev2022-02-101-5/+5
| | | | Commit 1 of 2.
* Restoring authorship annotation for Ilnur Khuziev <ilnur.khuziev@yandex.ru>. ↵Ilnur Khuziev2022-02-101-1/+1
| | | | Commit 2 of 2.
* Restoring authorship annotation for Ilnur Khuziev <ilnur.khuziev@yandex.ru>. ↵Ilnur Khuziev2022-02-101-1/+1
| | | | Commit 1 of 2.
* Restoring authorship annotation for <vskipin@yandex-team.ru>. Commit 2 of 2.vskipin2022-02-101-12/+12
|
* Restoring authorship annotation for <vskipin@yandex-team.ru>. Commit 1 of 2.vskipin2022-02-101-12/+12
|
* Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. ↵Anton Samokhvalov2022-02-101-84/+84
| | | | Commit 2 of 2.
* Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. ↵Anton Samokhvalov2022-02-101-84/+84
| | | | Commit 1 of 2.
* Restoring authorship annotation for <kikht@yandex-team.ru>. Commit 2 of 2.kikht2022-02-101-139/+139
|
* Restoring authorship annotation for <kikht@yandex-team.ru>. Commit 1 of 2.kikht2022-02-101-139/+139
|
* intermediate changesDevtools Arcadia2022-02-071-0/+618
ref:cde9a383711a11544ce7e107a78147fb96cc4029