cleverly.assessment.CacheEntry#

class cleverly.assessment.CacheEntry(key: str, operation: str, nbytes: int, evictable: bool)[source]#

One filed answer of an AssessmentCache.

Parameters:
keystr

The key: the operation and its normalized arguments.

operationstr

The operation, the key’s text before its first colon.

nbytesint

The bytes the answer is counted at (AssessmentCache.nbytes).

evictablebool

Whether a budget or AssessmentCache.evict() may drop it.

Methods#

Attributes#

CacheEntry.key: str#
CacheEntry.operation: str#
CacheEntry.nbytes: int#
CacheEntry.evictable: bool#