Class CacheProvider

java.lang.Object
io.mangoo.cache.CacheProvider
All Implemented Interfaces:
com.google.inject.Provider<Cache>, javax.inject.Provider<Cache>

public class CacheProvider extends Object implements com.google.inject.Provider<Cache>
Author:
svenkubiak
  • Constructor Details

    • CacheProvider

      @Inject public CacheProvider(Config config)
  • Method Details

    • getCache

      public Cache getCache(CacheName name)
      Retrieves a cache by its name from the cache pool
      Parameters:
      name - The name of the cache
      Returns:
      A Cache instance
    • getCache

      public Cache getCache(String name)
      Retrieves a cache by its name from the cache pool
      Parameters:
      name - The name of the cache
      Returns:
      A Cache instance
    • getCaches

      public Map<String,Cache> getCaches()
      Returns:
      Map of all caches
    • get

      public Cache get()
      Specified by:
      get in interface com.google.inject.Provider<Cache>
      Specified by:
      get in interface javax.inject.Provider<Cache>