include CacheCache.Make creates a cache module that exposes a simple with_ interface over its
resources. The cache has the following properties:
Resource reuse: When a resource r is opened, it will remain open until one of the
following:
f r raised an exception where f was a function passed to with_r has been idle for idle_cleanup_afterr has been used max_resource_reuse timesclose_and_flush has been called on the cacheWhen a resource is closed, either because of one of the above conditions, or because it was closed by other means, it no longer counts towards the limits.
Limits: The cache respects the following limits:
max_resources are open simultaneouslymax_resources_per_id are open simultaneously for a given id (args)module type Resource_intf : sig ... endmodule Config = Cache.Configmodule type Status_intf : sig ... endmodule Make = Cache.Makemodule Address_config = Resource_cache__.Address_configmodule Rpc_connection_resource = Resource_cache__.Rpc_connection_resource