summaryrefslogtreecommitdiffstats
path: root/library/cpp/cache/thread_safe_cache.h
Commit message (Collapse)AuthorAgeFilesLines
* remove unused includes in util/generic/string.htobo2024-10-171-0/+1
| | | | commit_hash:edd5ed00db3a4c6090c535fa406f184268188733
* add GetOrNull method to threadsafe cacheivanmautin2024-06-061-0/+10
| | | | 2c3ce3e36d35b563fe21b581380310ac84007f57
* add TThreadSafeLRUCacheWithSizeProvider wrapperivanmautin2024-06-061-0/+46
| | | | | | На данный момент никак нельзя создать 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-0/+10
| | | | | | | | Раньше метод GetTotalSize() был только в TLRUList, хотя TSizeProvider присутствовал также в TLRUList Добавил GetTotalSize() во все листы (в том числе TLWList), а также метод GetSize(), который возвращает текущее количество Также добавил эти методы в сами TCache и TThreadSafeCache c103617d7259841e1c273cadd8dbf0bb019e52dc
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.desertfury2022-02-101-2/+2
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.desertfury2022-02-101-2/+2
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.grmammaev2022-02-101-20/+20
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.grmammaev2022-02-101-20/+20
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.heios2022-02-101-41/+41
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.heios2022-02-101-41/+41
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.iddqd2022-02-101-79/+79
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.iddqd2022-02-101-79/+79
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.wd282022-02-101-7/+7
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.wd282022-02-101-7/+7
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.nkmakarov2022-02-101-23/+23
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.nkmakarov2022-02-101-23/+23
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.emazhukin2022-02-101-21/+21
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.emazhukin2022-02-101-21/+21
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.agorodilov2022-02-101-1/+1
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.agorodilov2022-02-101-1/+1
|
* Restoring authorship annotation for Anton Samokhvalov <[email protected]>. ↵Anton Samokhvalov2022-02-101-7/+7
| | | | Commit 2 of 2.
* Restoring authorship annotation for Anton Samokhvalov <[email protected]>. ↵Anton Samokhvalov2022-02-101-7/+7
| | | | Commit 1 of 2.
* intermediate changesDevtools Arcadia2022-02-071-0/+201
ref:cde9a383711a11544ce7e107a78147fb96cc4029