org.apache.hc.client5.http.impl.cache

## Class InternalCacheStorage

- java.lang.Object
- - org.apache.hc.client5.http.impl.cache.InternalCacheStorage

-     @Internal
      public final class InternalCacheStorage
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `InternalCacheStorage()`
    `InternalCacheStorage(int maxEntries)`
    `InternalCacheStorage(int maxEntries, Consumer<HttpCacheStorageEntry> evictionCallback)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `clear()`
    `HttpCacheEntry` | `get(String key)`
    `void` | `put(String key, HttpCacheEntry entry)`
    `HttpCacheEntry` | `remove(String key)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### InternalCacheStorage

          public InternalCacheStorage(int maxEntries,
                                      Consumer<HttpCacheStorageEntry> evictionCallback)

    - #### InternalCacheStorage

          public InternalCacheStorage(int maxEntries)

    - #### InternalCacheStorage

          public InternalCacheStorage()

  - ### Method Detail

    - #### put

          public void put(String key,
                          HttpCacheEntry entry)

    - #### get

          public HttpCacheEntry get(String key)

    - #### remove

          public HttpCacheEntry remove(String key)

    - #### clear

          public void clear()

Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.