def __init__(self, state_view):
        """Creates a SettingsView, given a StateView for merkle tree access.

        Args:
            state_view (:obj:`StateView`): a state view
        """
        self._state_view = state_view

        # The public method for get_settings should have its results memoized
        # via an lru_cache.  Typical use of the decorator results in the
        # cache being global, which can cause views to return incorrect
        # values across state root hash boundaries.
        self.get_setting = lru_cache(maxsize=128)(self._get_setting)
def __init__ ( self , state_view ) : self . _state_view = state_view self . get_setting = lru_cache ( maxsize = 128 ) ( self . _get_setting )
Creates a SettingsView, given a StateView for merkle tree access.

        Args:
            state_view (:obj:`StateView`): a state view