com.opensymphony.xwork2.ognl

## Class StrutsProxyCacheFactory<Key,Value>

- java.lang.Object
- - com.opensymphony.xwork2.ognl.DefaultOgnlCacheFactory<Key,Value>
  - - com.opensymphony.xwork2.ognl.StrutsProxyCacheFactory<Key,Value>

- Type Parameters:
    `Key` - The type for the cache key entries
    `Value` - The type for the cache value entries
  All Implemented Interfaces:
    OgnlCacheFactory<Key,Value>, ProxyCacheFactory<Key,Value>

      public class StrutsProxyCacheFactory<Key,Value>
      extends DefaultOgnlCacheFactory<Key,Value>
      implements ProxyCacheFactory<Key,Value>

  Struts Proxy Cache factory implementation for ProxyUtil caches.

  This factory is used to create caches for proxy detection in ProxyUtil. The cache type and size can be configured via Struts constants.

  Since:
    6.9.0

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface com.opensymphony.xwork2.ognl.OgnlCacheFactory

      `OgnlCacheFactory.CacheType`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `StrutsProxyCacheFactory(String cacheMaxSize, String defaultCacheType)`

  - ### Method Summary

    - ### Methods inherited from class com.opensymphony.xwork2.ognl.DefaultOgnlCacheFactory

      `buildOgnlCache, buildOgnlCache, getCacheMaxSize, getDefaultCacheType, setCacheMaxSize, setUseLRUCache`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface com.opensymphony.xwork2.ognl.OgnlCacheFactory

      `buildOgnlCache, buildOgnlCache, buildOgnlCache, getCacheMaxSize, getDefaultCacheType, getUseLRUCache`

- - ### Constructor Detail

    - #### StrutsProxyCacheFactory

          public StrutsProxyCacheFactory(String cacheMaxSize,
                                         String defaultCacheType)

Copyright © 2000–2026 Apache Software Foundation. All rights reserved.