Class CacheFactory<K,V>

java.lang.Object
org.wildfly.clustering.cache.caffeine.CacheFactory<K,V>
Type Parameters:
K - the cache key type
V - the cache value type
All Implemented Interfaces:
Function<CacheConfiguration<K,V>, com.github.benmanes.caffeine.cache.Cache<K,V>>, org.wildfly.clustering.function.Function<CacheConfiguration<K,V>, com.github.benmanes.caffeine.cache.Cache<K,V>>

public class CacheFactory<K,V> extends Object implements org.wildfly.clustering.function.Function<CacheConfiguration<K,V>, com.github.benmanes.caffeine.cache.Cache<K,V>>
A factory for creating a Caffeine cache using a given configuration.
Author:
Paul Ferraro
  • Field Summary

    Fields inherited from interface org.wildfly.clustering.function.Function

    IDENTITY, NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new cache factory.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.github.benmanes.caffeine.cache.Cache<K,V>
    apply(CacheConfiguration<K,V> configuration)
     

    Methods inherited from class Object

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

    Methods inherited from interface org.wildfly.clustering.function.Function

    andThen, compose, compose, handle, optional, orDefault, withDefault, withMonitor
  • Constructor Details

    • CacheFactory

      public CacheFactory()
      Constructs a new cache factory.
  • Method Details