package resource_cache

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Resource_cacheSource

Sourcemodule Address_config : sig ... end
Sourcemodule Config : sig ... end
Sourcemodule Resource : sig ... end
Sourcemodule Rpc_connection_resource : sig ... end
Sourcemodule Status : sig ... end
Sourcemodule type S = sig ... end
Sourcemodule Make (R : Resource.S) () : sig ... end

Cache.Make creates a cache module that exposes a simple with_ interface over its resources. The cache has the following properties:

Sourcemodule Make_simple (R : Resource.Simple) () : sig ... end

Wrap a resource that does not natively support a has_close_started operation in a simple record to add such tracking.

Sourcemodule Make_wrapped (R : Resource.S_wrapped) () : sig ... end

Make a cache from a resource where the type clients wish to operate on is derived from, but not necessarily equal to, the type held by the cache.