# This cache stores stacks of SAIL bindings for SAIL Undo and Redo # Cache keys: String, derived from StatefulSailCacheKey. Unique for each SAIL UI # Cache values: SailContextHistory, Two stacks of serialized SAIL bindings, one for Undo and one for Redo appian.cacheattributes.cacheName=sailContextHistory # JCS boilerplate # Cache algorithm is LIRS appian.cacheattributes.MemoryCacheName=com.appiancorp.cache.JavaCachingSystemLirs # Maximum number of objects that the cache should hold. # Slightly more than the expected number of concurrent users * number of designer windows they have open simultaneously # The maximum of the sum of the number of entries in the two stacks is 25 # Max memory estimate: 100 histories * 50 KB/stack entry * 25 stack entries = 125MB appian.cacheattributes.MaxObjects=100 # Time to live # Undo and Redo capability is not important to carry over from one day to another. appian.elementattributes.MaxLifeSeconds=21600 # Background memory shrinkage (active eviction) # Need to actively clean up cache because Sail sessions are not long-lived, but we do not know when they end appian.cacheattributes.ShrinkerIntervalSeconds=3600 appian.cacheattributes.MaxMemoryIdleTimeSeconds=21600