Skip to content

Commit ec1c5b6

Browse files
committed
Address comments
1 parent d170e9f commit ec1c5b6

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"type": "feature",
3-
"category": "Amazon DyanmoDB",
3+
"category": "Amazon DynamoDB",
44
"contributor": "",
5-
"description": "Enable caching calls to URI constructors for account-id based endpoints"
5+
"description": "Enable caching results to URI constructors for account-id based endpoints"
66
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS SDK for Java v2",
4+
"contributor": "",
5+
"description": "Add support for caching results to URI constructors for account-id based endpoints"
6+
}

utils/src/main/java/software/amazon/awssdk/utils/cache/bounded/BoundedCache.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* A thread-safe cache implementation that returns the value for a specified key, retrieving it by either getting the stored
2828
* value from the cache or using a supplied function to calculate that value and add it to the cache.
2929
* <p>
30-
* When the cache is full, batch eviction of random values will be performed, with a default evictionBatchSize of 10.
30+
* When the cache is full, batch eviction of unspecified values will be performed, with a default evictionBatchSize of 10.
3131
* <p>
3232
* The user can configure the maximum size of the cache, which is set to a default of 150.
3333
* <p>
@@ -94,7 +94,7 @@ public V get(K key) {
9494
}
9595

9696
/**
97-
* Clean up the cache by batch removing random entries of evictionBatchSize
97+
* Clean up the cache by batch removing unspecified entries of evictionBatchSize
9898
*/
9999
private void cleanup() {
100100
Iterator<K> iterator = cache.keySet().iterator();

0 commit comments

Comments
 (0)