Skip to content

Commit

Permalink
set the timeout period to 10 seconds (#674)
Browse files Browse the repository at this point in the history
Signed-off-by: Meina Zhou <[email protected]>
  • Loading branch information
zhoumeina authored Jun 17, 2019
1 parent d60ec84 commit 71e28bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private long getTimeout() {

public static void set(String key, Object value) {
long currentTime = System.currentTimeMillis();
localCache.put(key, new ValueObject(value, currentTime + 50000));
localCache.put(key, new ValueObject(value, currentTime + 10000));
}

public static Object get(String key) {
Expand Down

0 comments on commit 71e28bf

Please sign in to comment.