Skip to content

Commit

Permalink
Prepare for release 0.5.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Apr 17, 2022
1 parent a1d460a commit 866759a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Change Log

## 0.5.0

This release adds support for new native memory model and drops support for the old one. Many thanks to @dcvz for the contribution.

### Added
- Synchronize cache loader by key - [#15](https://github.com/ReactiveCircus/cache4k/pull/15)
- Support new native memory model and drop support for old memory model - [#17](https://github.com/ReactiveCircus/cache4k/pull/17)

### Changed

- Kotlin 1.6.20.
- Coroutines 1.6.1

## 0.4.0

### Added
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ In-memory Cache for Kotlin Multiplatform.

**cache4k** provides a simple in-memory key-value cache for **Kotlin Multiplatform**, with support for time-based (expiration) and size-based evictions.

**Note that only the new Kotlin Native memory model is supported.**

The following targets are currently supported:

- jvm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ internal class RealCache<Key : Any, Value : Any>(
private fun recordRead(cacheEntry: CacheEntry<Key, Value>) {
if (expiresAfterAccess) {
val accessTimeMark = cacheEntry.accessTimeMark.value
cacheEntry.accessTimeMark.update { (accessTimeMark + accessTimeMark.elapsedNow()) }
cacheEntry.accessTimeMark.update { accessTimeMark + accessTimeMark.elapsedNow() }
}
accessQueue?.addLastOrReorder(cacheEntry)
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=io.github.reactivecircus.cache4k
VERSION_NAME=0.5.0-SNAPSHOT
VERSION_NAME=0.5.0

POM_URL=https://github.com/reactivecircus/cache4k
POM_SCM_URL=https://github.com/reactivecircus/cache4k
Expand Down

0 comments on commit 866759a

Please sign in to comment.