Interface ICacheManager

All Superinterfaces:
IComponent, IComponentProvider, IInitializable, IURIResolver

public interface ICacheManager extends IComponentProvider
Title: Description: Copyright: Copyright (c) 2000 Company:
  • Field Details

  • Method Details

    • getCache

      ICache getCache(String name)
      Gets a cached cache. Only caches created thru createCache will show up here.
      Parameters:
      name -
      Returns:
      ICache or null if name not found.
    • getCache

      ICache getCache(int cacheID)
      get cache by ID Only valid for DB-based caches, otherwise returns null
      Parameters:
      cacheID -
      Returns:
    • createCache

      ICache createCache(String factory, String name, int maxSize, boolean isClustered, String phase, Map<String,Object> properties) throws PortalException, InitializationException
      Creates a cache using the specified factory class name. Factory class must implement ICacheFactory. Name must be unique.
      Parameters:
      factory - factory class name
      name - name of cache
      maxSize - maximum size of in-memory component of cache
      isClustered - do you want to gen/rec cluster-wide cache events?
      Returns:
      new cache.
      Throws:
      CacheException - if failure to instantiate
      PortalException
      InitializationException
    • removeCache

      void removeCache(String name) throws PortalException
      removes an item from the cache. Note that any persisted data is unaffected.
      Parameters:
      name - cache name
      Throws:
      PortalException
    • flushAllCaches

      void flushAllCaches(ICacheKey key)
      calls ICache.flush with given key on all known caches Note that one key implementation won't flush caches that contain a different key implementation
    • stopThread

      void stopThread()
    • getMetaContext

      IMetaContext getMetaContext()
      get the standard meta context
      Returns:
    • configureCache

      default void configureCache(String name, Map<String,Object> properties) throws PortalException
      Throws:
      PortalException