Skip to content

Commit

Permalink
(#179) Add puzzle
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Sep 3, 2020
1 parent cb1fef9 commit 8c58144
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/main/java/com/jcabi/http/wire/CachingWire.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,25 @@
* .uri().path("/save/123").back()
* .fetch();</pre>
*
* <p>Since 1.17.3, you can pass a {@see LoadingCache} alongside the wire.
*
* <pre>{@code
* final LoadingCache<Callable<Response>, Response> cache = ...;
* new JdkRequest(uri)
* .through(CachingWire.class, cache)
* .uri().path("/save/123").back()
* .fetch();
* }</pre>
*
* <p>The regular expression provided will be used against a string
* constructed as an HTTP method, space, path of the URI together with
* query part.
*
* <p>The class is immutable and thread-safe.
*
* @todo #179:30m This implementation depends on Guava. Investigate for a
* possible shared interface between this class and other implementations for
* caching. If this shared interface is possible replace this task with a task
* for implementing it.
* @since 1.0
*/
@Immutable
Expand Down

0 comments on commit 8c58144

Please sign in to comment.