parameters: (key, default=None)
return_statement: return default
docstring: Gets an in-memory cache value
  
      :param key:
          The string key
  
      :param default:
          The value to return if the key has not been set, or the ttl expired
  
      :return:
          The cached value, or default
docstring_summary: Gets an in-memory cache value
docstring_tokens: Gets an in - memory cache value
function: def get_cache(key, default=None):
      """
      Gets an in-memory cache value
  
      :param key:
          The string key
  
      :param default:
          The value to return if the key has not been set, or the ttl expired
  
      :return:
          The cached value, or default
      """
  
      struct = _channel_repository_cache.get(key, {})
      expires = struct.get('expires')
      if expires and expires > time.time():
          return struct.get('data')
      return default
function_tokens: def get_cache ( key , default = None ) : struct = _channel_repository_cache . get ( key , { } ) expires = struct . get ( 'expires' ) if expires and expires > time . time ( ) : return struct . get ( 'data' ) return default