sushy/sushy
Debayan Ray 3ed9aa95c8 Caching ResourceCollectionBase::get_members()
Right now each time 'get_members()' method gets called a new list
is created with fresh instantiation of element type resources.

This ought to be optimized by returning the cached result in
case of repetitive invocations and should the need be to fetch
the refreshed result it would ideally reinstantiate the member
resources of the collection. Also, in case of any member resource
element within collection is being marked as stale, this handles
properly to return the refresh'ed resource if that is accessed
through this 'get_members()' method of the referenced resource
collection instance:

    res_collection_inst.get_members()[any_index].some_attr

to access the current (or live) value of 'some_attr' w/o the need
of recreating (read re-instantiating) the constituent element
resource instance.

Change-Id: I7885143baa430d4e088f99febd6f8bc1a4f99aea
2018-08-27 09:28:59 +00:00
..
resources Caching ResourceCollectionBase::get_members() 2018-08-27 09:28:59 +00:00
tests Caching ResourceCollectionBase::get_members() 2018-08-27 09:28:59 +00:00
__init__.py Add system simple storage resource support 2018-07-19 07:43:31 +00:00
auth.py Restores sushy session functionality. 2018-01-24 14:07:55 -07:00
connector.py Restore interface of Connector 2018-01-18 18:16:36 +01:00
exceptions.py Implement Redfish Sessions 2018-01-16 09:24:08 -07:00
main.py Mark Systems/Managers/SessionService optional 2018-03-15 05:34:40 +00:00
utils.py Add storage volume 2018-04-13 08:50:57 +00:00