Move TTLCache usage to CLI-only. Public APIs in nvitop.api will always return immediate results.
Motivation and Context
In the previous implementation, the public APIs may return cached results. Now all caching mechanisms are moved to CLI-only. This is more consistent with other packages such as psutil.Process.
Issue Type
Description
Move
TTLCache
usage to CLI-only. Public APIs innvitop.api
will always return immediate results.Motivation and Context
In the previous implementation, the public APIs may return cached results. Now all caching mechanisms are moved to CLI-only. This is more consistent with other packages such as
psutil.Process
.