class Bucket:
Buckets are used to store the bytecode for one template. It's created and initialized by the bytecode cache and passed to the loading functions.
The buckets get an internal checksum from the cache assigned and use this to automatically reject outdated cache material. Individual bytecode cache subclasses don't have to care about cache invalidation.
Method | bytecode_from_string |
Load bytecode from bytes. |
Method | bytecode_to_string |
Return the bytecode as bytes. |
Method | load_bytecode |
Loads bytecode from a file or file like object. |
Method | reset |
Resets the bucket (unloads the bytecode). |
Method | write_bytecode |
Dump the bytecode into the file or file like object passed. |
Instance Variable | code |
Undocumented |
Instance Variable | environment |
Undocumented |
Instance Variable | key |
Undocumented |
Method | __init__ |
Undocumented |
Instance Variable | checksum |
Undocumented |
Parameters | |
f:t.BinaryIO | Undocumented |
Parameters | |
f:t.BinaryIO | Undocumented |
Undocumented
Parameters | |
environment:Environment | Undocumented |
key:str | Undocumented |
checksum:str | Undocumented |