Redis and Caching Configuration
This page describes the current OSA Proxy implementation. The archived Java/Spring implementation is available in Archived Java/Spring implementation.
OSA Proxy supports Redis caching for Judge verdicts to speed up repeated requests and reduce CodeScoring load. The cache is disabled by default.
Parameters
Redis Sentinel
Enable Sentinel for Redis HA. A regular cache.redis.address is not required in this mode. Redis master and Sentinel credentials are configured independently:
If Redis is temporarily unavailable, OSA Proxy continues to use the available local caching mechanisms.
Background refresh does not extend an entry TTL by itself. TTL is extended when data is read from the cache by real requests, so rarely used entries are eventually removed from Redis.
Cache Management
The operational API is available through Swagger UI:
Main operations:
DELETE /api/cache/purls— delete specific PURLs from the verdict cache;DELETE /api/cache/packages/{packageType}— delete entries by package type, package name, or repository context.
