Upgrade to Couchbase Cache Client 2.1.0

As of 2.1 cache expiration times are to be set in seconds. This commit
migrates to the new method, yet keeping the milliseconds unit.

Closes gh-7824
This commit is contained in:
Stephane Nicoll
2017-01-04 10:46:17 +01:00
parent 2ea7187165
commit bf7271afa5
5 changed files with 19 additions and 9 deletions

View File

@@ -4094,7 +4094,7 @@ cache:
public CacheManagerCustomizer<CouchbaseCacheManager> cacheManagerCustomizer() {
return c -> {
c.prepareCache("biz", CacheBuilder.newInstance(anotherBucket())
.withExpirationInMillis(2000));
.withExpiration(2));
};
}