mirror of
https://github.com/google/nomulus
synced 2026-05-13 19:31:46 +00:00
We add optional Valkey caching of hosts and domains for future use. Eventually, this will allow us to pre-warm large amounts of data in Valkey for quick retrieval during actions like RDAP. Note: this doesn't actually use the caches yet. We use Jedis instead of Redisson for speed purposes (https://www.instaclustr.com/blog/redis-java-clients-and-client-side-caching/) which means that we have to implement our own multilayer cache but that's not the worst thing in the world. Tested on crash with logging and RDAP code that's not included in this PR -- it behaves as you'd expect, where the local cache works for immediate re-lookups and the remote cache works after a restart.