Skip to content

Latest commit

 

History

History
107 lines (61 loc) · 2.2 KB

File metadata and controls

107 lines (61 loc) · 2.2 KB

Caching

Tstickers Index / Tstickers / Caching

Auto-generated documentation for tstickers.caching module.

Attributes

_get_verify_function

Show source in caching.py:83

Get the appropriate cache verification function based on version.

Arguments


  • version int - Cache version

Returns


Callable[[dict[str, Any]], bool]: Cache verification function

Signature

def _get_verify_function(version: int) -> Callable[[dict[str, Any]], bool]: ...

_verify_converted_v1

Show source in caching.py:51

Verify the cache for a packName using cache data.

Arguments


data (dict[Path, Any]): packName cache data to verify

Returns


  • bool - if the converted cache has been verified

Signature

def _verify_converted_v1(data: dict[str, Any]) -> bool: ...

create_converted

Show source in caching.py:70

Write cache data to a file identified by packName.

Arguments


  • pack_name str - name of the sticker pack eg. "DonutTheDog"
  • data dict - packName cache data to write to cache

Signature

def create_converted(pack_name: str, data: dict) -> None: ...

verify_converted

Show source in caching.py:27

Verify the cache for a packName eg. "DonutTheDog". Uses the cache "version" to call the verify function for that version.

Arguments


  • pack_name str - name of the sticker pack eg. "DonutTheDog"

Returns


  • bool - if the converted cache has been verified

Signature

def verify_converted(pack_name: str) -> bool: ...