commit | f811ee04e8f96ce1c2ec1c75bbb2358e569d7c76 | [log] [tgz] |
---|---|---|
author | Amith Yamasani <yamasani@google.com> | Wed Jun 12 16:39:20 2024 -0700 |
committer | Amith Yamasani <yamasani@google.com> | Thu Aug 15 20:32:29 2024 +0000 |
tree | 600b365c91aa5d97198b4210270281257a069a27 | |
parent | 6a3e6b1ae2bbf2eab928c03f46b05224b3d127dd [diff] |
Introduce RateLimitingCache helper class It allows rate-limiting of AIDL calls that return a value that doesn't change often and can be cached for retrieval if the caller makes too many calls in close succession. Use for API calls that don't have side-effects on the other end of the AIDL. Bug: 345299715 Test: atest RateLimitingCacheTest Flag: EXEMPT bugfix Change-Id: I7703379183a993f7aa58270cce3d9c5c1b839978