Skip to content

Create a Cache pool service #3954

@seanmonstar

Description

@seanmonstar

In hyper-util, create a Cache type that acts as a pool over an inner make-service. Asking the Cache to produce a service will either return a cached one, or create a new one with the inner maker. The returned service is Cached<S>, which knows to return the service to the cache upon Drop.

See more in the proposal at #3948.

Metadata

Metadata

Assignees

Labels

A-clientArea: client.C-featureCategory: feature. This is adding a new feature.K-hyper-utilCrate: hyper-util

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions