Skip to content

Commit

Permalink
#21 one min cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Nov 15, 2016
1 parent 854a708 commit 17150ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/jare/cached/CdBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public User user(final String name) {
}

@Override
@Cacheable(forever = true)
@Cacheable(lifetime = 1, unit = TimeUnit.MINUTES)
public Iterator<Domain> domain(final String name) {
return Iterators.transform(
this.origin.domain(name),
Expand Down

0 comments on commit 17150ed

Please sign in to comment.