You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
1
# Change Log
2
2
3
-
## 0.6.0
3
+
## Unreleased
4
4
5
5
### Changed
6
6
7
-
- Time Source can be provided externally
7
+
-`fakeTimeSource` in `Cache.Builder` has been renamed to `timeSource`, and the `FakeTimeSource` implementation has been removed (still available in our tests) - [#20](https://github.com/ReactiveCircus/cache4k/pull/20)
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -196,7 +196,7 @@ cache.invalidateAll()
196
196
197
197
### Unit testing cache expirations
198
198
199
-
To test logic that depends on cache expiration, pass in a `FakeTimeSource` when building a `Cache`
199
+
To test logic that depends on cache expiration, pass in a fake `TimeSource` implementation when building a `Cache`
200
200
so you can programmatically advance the reading of the time source:
201
201
202
202
```kotlin
@@ -224,6 +224,8 @@ fun cacheEntryEvictedAfterExpiration() {
224
224
}
225
225
```
226
226
227
+
A sample `FakeTimeSource` implementation can be found in [our tests](https://github.com/ReactiveCircus/cache4k/blob/8376a5f6198b3d8f82f42184fd1cabe4aa08e754/cache4k/src/commonTest/kotlin/io/github/reactivecircus/cache4k/FakeTimeSource.kt).
228
+
227
229
## Credits
228
230
229
231
The library was ported from a kotlin / JVM cache which I contributed to [dropbox/Store](https://github.com/dropbox/Store) to help unblock Store's multiplatform support (
0 commit comments