Guide - 7.10.19.0 New Cache API - Configuration and Metrics

Product Version

7.10

Product To Version


Status

final

1 Introduction

With release 7.10.19.0, a new Cache API is introduced, which allows fine grained configuration and invalidation. The new caches are based on Guava cache implementation.

2 Migration

Existing caches must not be migrated, but we recommend to use the new cache API as soon as possible. Some features are:

  • Fully configurable via properties
  • Allow weak references for keys and weak or soft references for values
  • Definition of initial and maximum size
  • Monitoring of caches (sizes, cache hit ration) via Prometheus /metrics endpoint (since version 7.10.25.0)

Attention

After introduction the promotion cache was reworked (7.10.22.0). Unfortunately, the default configuration of caches leads to an high memory usage of that cache. So we strongly recommend to configure the cache manually.

intershop.caches.PromotionsCache.guava.config=recordStats,concurrencyLevel=16,initialCapacity=100,maximumSize=10000

2.1 Documents

Disclaimer

The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.

Customer Support
Knowledge Base
Product Resources
Tickets