Interface CacheConfig


@Preview(name="Property Encryption") public interface CacheConfig
A cache configuration.
Since:
6.3.0
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the maximum cache size.
    ttl()
    Returns the cache entry TTL after which entries are considered no longer valid.
  • Method Details

    • maxSize

      int maxSize()
      Returns the maximum cache size.
      Returns:
      the maximum cache size
    • ttl

      Duration ttl()
      Returns the cache entry TTL after which entries are considered no longer valid.
      Returns:
      the cache entry TTL