Skip to main content

Module cache

Module cache 

Source
Available on crate features client and client-pool only.
Expand description

A cache of services

The cache is a single list of cached services, bundled with a MakeService. Calling the cache returns either an existing service, or makes a new one. The returned impl Service can be used to send requests, and when dropped, it will try to be returned back to the cache.

Structs§

Builderdocsrs
A builder to configure a Cache.
Cachedocsrs
A cache pool of services from the inner make service.
Cacheddocsrs
A cached service returned from a Cache.

Functions§

builder
Start a builder to construct a Cache pool.