Cache#

class squirro.lib.nlp.utils.cache.Cache#

Bases: abc.ABC

Methods Summary

delete(key)

rtype

None

exists(key)

rtype

bool

get(key)

rtype

Optional[Any]

get_all()

rtype

List[Tuple[str, Any]]

set(key, value)

rtype

None

Methods Documentation

abstract delete(key)#
Return type

None

abstract exists(key)#
Return type

bool

abstract get(key)#
Return type

Optional[Any]

abstract get_all()#
Return type

List[Tuple[str, Any]]

abstract set(key, value)#
Return type

None