19
19
/**
20
20
* Configures the SDK to use a Least-Recently-Used garbage collector for memory cache.
21
21
*
22
- * <p>To use, create an instance using {@link MemoryLruGcSettings#newBuilder().build()}, then set
22
+ * <p>To use, create an instance using {@code MemoryLruGcSettings#newBuilder().build()}, then set
23
23
* the instance to {@code MemoryCacheSettings.Builder#setGcSettings}, and use the built {@code
24
24
* MemoryCacheSettings} instance to configure the Firestore SDK.
25
25
*/
@@ -43,7 +43,8 @@ public MemoryLruGcSettings build() {
43
43
* a guarantee that the cache will stay below that size, only that if the cache exceeds the
44
44
* given size, cleanup will be attempted.
45
45
*
46
- * <p>A default size of 100MB is used if unset. The minimum value to set is 1 MB.
46
+ * <p>A default size of 100MB (100 * 1024 * 1024) is used if unset. The minimum value to set is
47
+ * 1 MB (1024 * 1024).
47
48
*
48
49
* @return this {@code Builder} instance.
49
50
*/
@@ -70,8 +71,8 @@ public static MemoryLruGcSettings.Builder newBuilder() {
70
71
* guarantee that the cache will stay below that size, only that if the cache exceeds the given
71
72
* size, cleanup will be attempted.
72
73
*
73
- * <p>By default, persistent cache is enabled with a cache size of 100 MB. The minimum value is 1
74
- * MB .
74
+ * <p>By default, memory LRU cache is enabled with a cache size of 100MB ( 100 * 1024 * 1024). The
75
+ * minimum value is 1 MB (1024 * 1024) .
75
76
*/
76
77
public long getSizeBytes () {
77
78
return sizeBytes ;
0 commit comments