cache_keys

Summary

create_key(method, url[, params, data, ...])

Create a unique cache key based on request details

encode_dict(data)

filter_ignored_params(data, ignored_params)

Remove any ignored params from an object, if it's dict-like

normalize_url_params(url[, params])

Normalize any combination of request parameter formats that aiohttp accepts

Module Contents

Functions for creating keys used for cache requests

create_key(method, url, params=None, data=None, json=None, headers=None, include_headers=False, ignored_params=None, **kwargs)

Create a unique cache key based on request details

Parameters:
Return type:

str

encode_dict(data)
Parameters:

data (Any)

Return type:

bytes

filter_ignored_params(data, ignored_params)

Remove any ignored params from an object, if it’s dict-like

Parameters:

ignored_params (Iterable[str])

normalize_url_params(url, params=None)

Normalize any combination of request parameter formats that aiohttp accepts

Parameters:
Return type:

URL