@_enable_lock<EOL><INDENT>def with_read_after_refresh_expire(self, flag, only_read=False):<DEDENT>
if not isinstance(flag, bool):<EOL><INDENT>self.logger.warning('<STR_LIT>' % flag)<EOL>return<EOL><DEDENT>self.read_after_refresh_expire = flag<EOL>
>>> cache = Cache(log_level=logging.WARNING)
>>> cache.read_after_refresh_expire
True
>>> cache.with_read_after_refresh_expire(False)
>>> cache.read_after_refresh_expire
False
>>> cache.with_read_after_refresh_expire('haha')
>>> cache.read_after_refresh_expire
False