Class CacheMeterBinderCompatibilityKit<C>

java.lang.Object
io.micrometer.core.instrument.binder.cache.CacheMeterBinderCompatibilityKit<C>

public abstract class CacheMeterBinderCompatibilityKit<C> extends Object
  • Field Details

    • cache

      protected C cache
  • Constructor Details

    • CacheMeterBinderCompatibilityKit

      public CacheMeterBinderCompatibilityKit()
  • Method Details

    • createCache

      public abstract C createCache()
      The return value will be assigned to cache.
      Returns:
      cache to use for tests
      See Also:
      • bindToRegistry()
    • dereferenceCache

      public void dereferenceCache()
      Performs any actions necessary to fully dereference the cache object.
    • binder

      public abstract io.micrometer.core.instrument.binder.cache.CacheMeterBinder<C> binder()
      Returns:
      A cache binder bound to a cache named "mycache".
    • put

      public abstract void put(String key, String value)
    • get

      @Nullable public abstract String get(String key)