get_resource_key method
Leave feedback
On this page
Returns unique identifier for the cache entry that represents Resource object.
def get_resource_key(cls, page_number, resource):
...
| Parameter | Type | Description |
|---|---|---|
| page_number | int |
The number of the page. |
| resource | Resource |
The HTML resource. |
Returns: str: Unique identifier for the cache entry that represents Resource object.
| Raises | Description |
|---|---|
ValueError |
If page_number is less than or equal to zero, or if resource is None. |
- class
CacheKeys
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.