java.lang.Object
org.keycloak.authorization.policy.provider.js.ScriptCache

public class ScriptCache extends Object
Author:
Pedro Igor
  • Constructor Details

    • ScriptCache

      public ScriptCache(int maxEntries)
      Creates a new instance.
      Parameters:
      maxEntries - the maximum number of entries to keep in the cache
    • ScriptCache

      public ScriptCache(int maxEntries, long maxAge)
      Creates a new instance.
      Parameters:
      maxEntries - the maximum number of entries to keep in the cache
      maxAge - the time in milliseconds that an entry can stay in the cache. If -1, entries never expire
  • Method Details