diff options
author | Jakob Odersky <jakob@odersky.com> | 2018-08-24 14:37:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-24 14:37:50 -0700 |
commit | 31e2cdd834c3be3d59bc23ee2c4eff7874d80159 (patch) | |
tree | fb8044a9f6dcaf27b43d4c7add2e4f70911487bd /src/main/scala/xyz/driver/core/cache.scala | |
parent | df1a2f7fcbdd85ac84162cf8eae8cdb6bb25cbb5 (diff) | |
download | driver-core-31e2cdd834c3be3d59bc23ee2c4eff7874d80159.tar.gz driver-core-31e2cdd834c3be3d59bc23ee2c4eff7874d80159.tar.bz2 driver-core-31e2cdd834c3be3d59bc23ee2c4eff7874d80159.zip |
Upgrade sbt-settings to major version 2 (#201)
This will affect development workflow: instead of running `sbt
release` to tag and publish a new version, the release process is now
as follows:
1. Create a git tag on a revision that should be published. The tag
must be in the format `v[0-9].*`
2. Push the tag to GitHub `git push --tags`
3. CI will build that tag and publish the resulting binary to our
artifactory
Since the new sbt settings do not enable advanced or risky language
features globally anymore (such as higher kinds, reflective calls and
implicit conversions), the other changes in this PR either import
language features locally or refactor the code to avoid using them
entirely.
Diffstat (limited to 'src/main/scala/xyz/driver/core/cache.scala')
-rw-r--r-- | src/main/scala/xyz/driver/core/cache.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/xyz/driver/core/cache.scala b/src/main/scala/xyz/driver/core/cache.scala index 3500a2a..9897c16 100644 --- a/src/main/scala/xyz/driver/core/cache.scala +++ b/src/main/scala/xyz/driver/core/cache.scala @@ -89,8 +89,8 @@ object cache { object AsyncCache { val DEFAULT_CAPACITY: Long = 10000L - val DEFAULT_READ_EXPIRATION: Duration = 10 minutes - val DEFAULT_WRITE_EXPIRATION: Duration = 1 hour + val DEFAULT_READ_EXPIRATION: Duration = 10.minutes + val DEFAULT_WRITE_EXPIRATION: Duration = 1.hour def apply[K <: AnyRef, V <: AnyRef]( name: String, |