Commit Graph

2 Commits

Author SHA1 Message Date
Easwar Swaminathan 6d849d5cd9
rls: Some minor updates to the RLS cache. (#3442)
* Add a Resize method which will be invoked by the RLS LB policy when it
  receives a new cacheSize in its ServiceConfig.
* Change the size fields in the cache to int64. This is the type of the
  cacheSize field in the proto.
* Store the BackoffState field in the cache.Entry by value instead of as
  a pointer because it doesn not buy us much (the backoff state is not
  shared between the data cache and the pending cache).
2020-03-11 08:53:06 -07:00
Easwar Swaminathan c26257da52
rls: Initial implementation of the LRU cache. (#3359)
Contains enough functionality to start working on the users of this
cache: the LB policy, picker and cache expiry goroutine.
2020-03-02 09:22:14 -08:00