Class ExternalSourceCacheService

java.lang.Object
org.elasticsearch.xpack.esql.datasources.cache.ExternalSourceCacheService
All Implemented Interfaces:
Closeable, AutoCloseable

public class ExternalSourceCacheService extends Object implements Closeable
Coordinator-only, in-memory cache service for external source metadata. Maintains two independent caches:
  • Schema cache (20% of budget, 5m TTL) — shared across users
  • Listing cache (80% of budget, 30s TTL) — isolated by credential hash
Uses hard TTL via setExpireAfterWrite for the initial implementation. Lazy TTL with ETag revalidation is deferred to a follow-up PR.
  • Constructor Details

    • ExternalSourceCacheService

      public ExternalSourceCacheService(Settings settings)
  • Method Details