Class PostgresProvider

java.lang.Object
org.fireflyframework.cache.spi.providers.PostgresProvider
All Implemented Interfaces:
org.fireflyframework.cache.spi.CacheProviderFactory

public class PostgresProvider extends Object implements org.fireflyframework.cache.spi.CacheProviderFactory
CacheProviderFactory implementation that contributes the PostgreSQL R2DBC cache provider. Discovered via ServiceLoader.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.fireflyframework.cache.spi.CacheProviderFactory

    org.fireflyframework.cache.spi.CacheProviderFactory.ProviderContext
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.fireflyframework.cache.core.CacheAdapter
    create(String cacheName, String keyPrefix, Duration defaultTtl, org.fireflyframework.cache.spi.CacheProviderFactory.ProviderContext ctx)
     
    org.fireflyframework.cache.core.CacheType
     
    boolean
    isAvailable(org.fireflyframework.cache.spi.CacheProviderFactory.ProviderContext ctx)
     
    int
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PostgresProvider

      public PostgresProvider()
  • Method Details

    • getType

      public org.fireflyframework.cache.core.CacheType getType()
      Specified by:
      getType in interface org.fireflyframework.cache.spi.CacheProviderFactory
    • priority

      public int priority()
      Specified by:
      priority in interface org.fireflyframework.cache.spi.CacheProviderFactory
    • isAvailable

      public boolean isAvailable(org.fireflyframework.cache.spi.CacheProviderFactory.ProviderContext ctx)
      Specified by:
      isAvailable in interface org.fireflyframework.cache.spi.CacheProviderFactory
    • create

      public org.fireflyframework.cache.core.CacheAdapter create(String cacheName, String keyPrefix, Duration defaultTtl, org.fireflyframework.cache.spi.CacheProviderFactory.ProviderContext ctx)
      Specified by:
      create in interface org.fireflyframework.cache.spi.CacheProviderFactory