prompting.validators.misc#

Module Contents#

Functions#

ttl_cache([maxsize, typed, ttl])

_ttl_hash_gen(seconds)

ttl_get_block(self)

prompting.validators.misc.ttl_cache(maxsize=128, typed=False, ttl=-1)#
Parameters:
  • maxsize (int) –

  • typed (bool) –

  • ttl (int) –

prompting.validators.misc._ttl_hash_gen(seconds)#
Parameters:

seconds (int) –

prompting.validators.misc.ttl_get_block(self)#
Return type:

int