Package io.vertx.httpproxy.cache

## Class CacheOptions

- java.lang.Object
- - io.vertx.httpproxy.cache.CacheOptions

-     public class CacheOptions
      extends Object

  Cache options.

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `static int` | `DEFAULT_MAX_SIZE` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `CacheOptions()` |
    `CacheOptions​(JsonObject json)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `int` | `getMaxSize()` |
    `<K,​V> Cache<K,​V>` | `newCache()` |
    `CacheOptions` | `setMaxSize​(int maxSize)` | Set the max number of entries the cache can hold.
    `JsonObject` | `toJson()` |
    `String` | `toString()` |

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

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

- - ### Field Detail

    - #### DEFAULT_MAX_SIZE

          public static final int DEFAULT_MAX_SIZE

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### CacheOptions

          public CacheOptions()

    - #### CacheOptions

          public CacheOptions​(JsonObject json)

  - ### Method Detail

    - #### getMaxSize

          public int getMaxSize()

      Returns:
        the max number of entries the cache can hold

    - #### setMaxSize

          public CacheOptions setMaxSize​(int maxSize)

      Set the max number of entries the cache can hold.
      Parameters:
        `maxSize` - the max size
      Returns:
        a reference to this, so the API can be used fluently

    - #### newCache

          public <K,​V> Cache<K,​V> newCache()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### toJson

          public JsonObject toJson()