Robert Schulze
|
46b4f03669
|
Some renamings for more consistency
weight() --> sizeInBytes()
maxSize() --> maxSizeInBytes()
setMaxSize() --> setMaxSizeInBytes()
|
2023-08-22 10:48:03 +00:00 |
|
Robert Schulze
|
90355c1f25
|
Check for synchronization with TSA instead of manually
|
2023-08-22 10:47:41 +00:00 |
|
Robert Schulze
|
8cbf626d0f
|
Cosmetics
|
2023-08-21 14:08:44 +00:00 |
|
Robert Schulze
|
96c8b250ce
|
Allow to configure cache sizes at runtime
|
2023-08-21 13:51:10 +00:00 |
|
Robert Schulze
|
38d5f12a32
|
Query Cache: Implement per-user quotas
|
2023-04-23 16:13:51 +00:00 |
|
Azat Khuzhin
|
79b83c4fd2
|
Remove superfluous includes of logger_userful.h from headers
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
|
2023-04-10 17:59:30 +02:00 |
|
Robert Schulze
|
2f75a6da61
|
Merge remote-tracking branch 'origin/master' into rs/qc-cachebase
|
2023-03-15 11:00:53 +00:00 |
|
Robert Schulze
|
73afae2d3f
|
Introduce TTLCachePolicy
|
2023-03-14 09:45:20 +00:00 |
|
Robert Schulze
|
eed365c8c8
|
Cleanup: Slightly more naming consistency (probably rolls back earlier changes)
|
2023-03-14 09:11:36 +00:00 |
|
Robert Schulze
|
e1fb25a004
|
Extend CacheBase with getWithKey() method
|
2023-03-14 08:38:22 +00:00 |
|
Robert Schulze
|
f1450923cb
|
Extend CacheBase with dump() method
|
2023-03-14 08:38:22 +00:00 |
|
Robert Schulze
|
e03618357e
|
Cleanup: Acquire lock in CacheBase::maxSize()
The upcoming TTLPolicy will likely have a runtime-configurable cache
size.
|
2023-03-14 08:38:22 +00:00 |
|
Robert Schulze
|
1d8004756a
|
Cleanup: Reuse aliases instead of redeclaring it
|
2023-03-13 15:11:12 +00:00 |
|
Robert Schulze
|
475415e421
|
Cleanup: Move on_weight_loss_function into concrete cache policies
Makes ICachePolicy a pure abstract interface
|
2023-03-13 09:20:07 +00:00 |
|
Robert Schulze
|
d165a15c58
|
Cleanup: Simplify some typedefs
|
2023-03-13 09:20:02 +00:00 |
|
Robert Schulze
|
9f6cb98c61
|
Cleanup: Remove default parameters from (S)LRUCachePolicy
Allows to add new mandatory parameters without accidentally breaking
something.
|
2023-03-13 09:19:55 +00:00 |
|
Robert Schulze
|
39898fbe64
|
Cleanup: max_elements_size --> max_entries
To disambiguate the maximum number of entries from the maximum byte size
of an entry.
|
2023-03-13 09:19:51 +00:00 |
|
Robert Schulze
|
7d5bc0d8c9
|
Cleanup: TrivialWeightFunction --> EqualWeightFunction
A true "trival" weight function would return .size() of the cache entry.
|
2023-03-13 09:19:45 +00:00 |
|
Robert Schulze
|
c300f5e68f
|
Cleanup: max_size --> max_size_in_bytes
To disambiguate the threshold from the maximum number of cache entries.
|
2023-03-13 09:19:39 +00:00 |
|
Robert Schulze
|
348a40aa5d
|
Compile with C++23
|
2023-03-10 19:11:58 +00:00 |
|
alexX512
|
62f84b88eb
|
Review fixes
|
2022-08-07 20:02:21 +00:00 |
|
alexX512
|
a238e349cd
|
Unblocking get max_size
|
2022-08-07 19:59:39 +00:00 |
|
alexX512
|
50a8887ab9
|
Add [[maybe_unused]] locks and delete all objects from cache queue
|
2022-08-07 19:59:38 +00:00 |
|
alexX512
|
4f52efd4bb
|
Build fix
|
2022-08-07 19:59:38 +00:00 |
|
alexX512
|
c606ccc75d
|
Fix formatting problems
|
2022-08-07 19:16:40 +00:00 |
|
alexX512
|
1133e42367
|
Add CacheBase clas instead of LRUCache and SLRUCache fo simpler configuration oache policiesf
|
2022-08-07 19:16:40 +00:00 |
|