Skip to content

Commit 414a562

Browse files
committed
set ttl in constructor
1 parent e468483 commit 414a562

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/wego/httpcache/services/impl/AsyncHttpCacheServiceImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public class AsyncHttpCacheServiceImpl implements AsyncHttpCacheService {
2525
@Inject
2626
public AsyncHttpCacheServiceImpl(@Assisted AsyncHttpClient asyncHttpClient, @Assisted long ttl) {
2727
this.asyncHttpClient = asyncHttpClient;
28+
this.ttl = ttl;
2829
}
2930

3031
@Override

0 commit comments

Comments
 (0)