|
16 | 16 | <a href="https://github.com/alibaba/java-dns-cache-manipulator/issues"><img src="https://img.shields.io/github/issues/alibaba/java-dns-cache-manipulator" alt="GitHub issues"></a> |
17 | 17 | <a href="https://github.com/alibaba/java-dns-cache-manipulator/graphs/contributors"><img src="https://img.shields.io/github/contributors/alibaba/java-dns-cache-manipulator" alt="GitHub Contributors"></a> |
18 | 18 | <a href="https://github.com/alibaba/java-dns-cache-manipulator"><img src="https://img.shields.io/github/repo-size/alibaba/java-dns-cache-manipulator" alt="GitHub repo size"></a> |
19 | | -<a href="https://github.com/alibaba/java-dns-cache-manipulator/releases/download/v1.6.3/dcm-1.6.3.tar.gz"><img src="https://img.shields.io/github/downloads/alibaba/java-dns-cache-manipulator/v1.6.3/dcm-1.6.3.tar.gz.svg" alt="GitHub release download - dcm.tar.gz)"></a> |
| 19 | +<a href="https://github.com/alibaba/java-dns-cache-manipulator/releases/download/v1.6.4/dcm-1.6.4.tar.gz"><img src="https://img.shields.io/github/downloads/alibaba/java-dns-cache-manipulator/v1.6.4/dcm-1.6.4.tar.gz.svg?logoColor=white&logo=DocuSign" alt="GitHub release download - dcm.tar.gz)"></a> |
20 | 20 | </p> |
21 | 21 |
|
22 | 22 | Java Dns Cache Manipulator(`DCM`) contains 2 subprojects: |
@@ -201,7 +201,7 @@ DnsCacheManipulator.clearDnsCache(); |
201 | 201 | ### Set/View the default DNS cache time of JVM |
202 | 202 |
|
203 | 203 | ```java |
204 | | -// View the cache time, in seconds. -1 means always cache, 0 means never cache |
| 204 | +// View the cache time, in seconds. -1 means cache forever, 0 means never cache |
205 | 205 | int cachePolicy = DnsCacheManipulator.getDnsCachePolicy(); |
206 | 206 | // Set the cache time |
207 | 207 | DnsCacheManipulator.setDnsCachePolicy(2); |
@@ -254,7 +254,7 @@ Java API document: <http://alibaba.github.io/java-dns-cache-manipulator/apidocs> |
254 | 254 | <dependency> |
255 | 255 | <groupId>com.alibaba</groupId> |
256 | 256 | <artifactId>dns-cache-manipulator</artifactId> |
257 | | - <version>1.6.3</version> |
| 257 | + <version>1.6.4</version> |
258 | 258 | </dependency> |
259 | 259 | ``` |
260 | 260 |
|
@@ -289,7 +289,7 @@ You can view the latest version at [search.maven.org](https://search.maven.org/a |
289 | 289 |
|
290 | 290 | ### Download |
291 | 291 |
|
292 | | -[](https://github.com/alibaba/java-dns-cache-manipulator/releases/download/v1.6.3/dcm-1.6.3.tar.gz) download the file `dcm-x.x.x.tar.gz`. |
| 292 | +[](https://github.com/alibaba/java-dns-cache-manipulator/releases/download/v1.6.4/dcm-1.6.4.tar.gz) download the file `dcm-x.x.x.tar.gz`. |
293 | 293 |
|
294 | 294 | After decompression, run `dcm` in the `bin` directory. |
295 | 295 |
|
@@ -356,18 +356,16 @@ $ dcm -p 12345 clear |
356 | 356 |
|
357 | 357 | ```bash |
358 | 358 | # View the cache time, in seconds. |
359 | | -# -1 means always cache, 0 means no cache |
360 | | -# 查看缓存时间,单位秒。-1表示永远缓存,0表示不缓存 |
| 359 | +# -1 means cache forever, 0 means no cache |
361 | 360 | $ dcm -p 12345 getPolicy |
362 | 361 | 30 |
363 | 362 | # Set cache time |
364 | 363 | $ dcm --pid 12345 setPolicy 5 |
365 | 364 | # View the cache time of missed entries, in seconds. |
366 | | -# -1 means always cache, 0 means no cache |
| 365 | +# -1 means cache forever, 0 means no cache |
367 | 366 | $ dcm -p 12345 getNegativePolicy |
368 | 367 | 10 |
369 | 368 | # Set the cache time of missed entries |
370 | | -# Set the cache time of missed entries |
371 | 369 | $ dcm -p 12345 setNegativePolicy 0 |
372 | 370 | ``` |
373 | 371 |
|
|
0 commit comments