Commit c4cf24d
authored
feat(pool): add a Cache pooling service (#227)
This creates a new `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.
Closes hyperium/hyper#39541 parent 9b1008d commit c4cf24d
3 files changed
+497
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments