Class ScimSimpleCache<T>

java.lang.Object
org.cibseven.bpm.identity.impl.scim.ScimSimpleCache<T>

public class ScimSimpleCache<T> extends Object
Thread-safe cache for SCIM GET responses with TTL-based expiration and max size eviction.
  • Field Details

  • Constructor Details

    • ScimSimpleCache

      public ScimSimpleCache(int maxSize, long expirationTimeoutMin)
  • Method Details

    • get

      public T get(String key)
      Get a cached value by key. Returns null if not found or expired.
    • put

      public void put(String key, T value)
      Put a value in cache.
    • invalidateAll

      public void invalidateAll()
      Invalidate all cache entries.
    • size

      public int size()
      Get the current number of cached entries.
    • evictExpired

      protected void evictExpired()
    • evictOldest

      protected void evictOldest(int count)