include Cache
Cache.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_after
r
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 ... end
module Config = Cache.Config
module type Status_intf : sig ... end
module Make = Cache.Make
module Address_config = Resource_cache__.Address_config
module Rpc_connection_resource = Resource_cache__.Rpc_connection_resource