Interface IDependentCache

All Superinterfaces:
ICache, IComponent, IDBCache, IInitializable

public interface IDependentCache extends IDBCache
Title: Description: Copyright: Copyright (c) 2000 Company:
  • Method Details

    • setAllDependencies

      void setAllDependencies(ICacheEntry entry, IThingIDList thingIDs) throws CacheException
      Clears all dependencies, and then sets the list to thingIDs
      Parameters:
      entry - entry of object to set deps on
      thingIDs - array of thing ID's
      Throws:
      CacheException - On invalid entry or DB error
    • clearDependencies

      void clearDependencies(ICacheEntry entry) throws CacheException
      removed all dependencies for this entry
      Parameters:
      entry - valid entry
      Throws:
      CacheException - if invalid entry or DB error
    • addDependencies

      void addDependencies(ICacheEntry entry, IThingIDList thingIDs) throws CacheException
      Adds a list of dependencies to the entry.
      Parameters:
      entry - valid entry
      thingIDs - array of thingID
      Throws:
      CacheException - on invalid entry or DB error
    • removeDependencies

      void removeDependencies(ICacheEntry entry, IThingIDList thingIDs) throws CacheException
      Removes specific dependencies
      Parameters:
      entry - valid entry
      thingIDs - array of thingID's
      Throws:
      CacheException - on invalid entry or DB error
    • invalidateByDep

      void invalidateByDep(IThingID thingID) throws CacheException
      invalidates all entries that are dependent on this thing. Note that this is potentially more expensive than invalidateByKey
      Parameters:
      thingID - dependency
      Throws:
      CacheException - on DB error
    • invalidateByDepKey

      int invalidateByDepKey(IThingID thingID, ICacheKey key, int invalFlags) throws CacheException
      generates a list of entries to invalidate based on the thingID, then filters that list via cache key. Use ex. would be invalidating only 1 user's affected entries.
      Throws:
      CacheException