2024-08-01 01:09:11 +00:00
|
|
|
|
Daisy cache for catchs,
|
|
|
|
|
PierMesh’s domain analog
|
|
|
|
|
==========================
|
|
|
|
|
|
|
|
|
|
### *class* Daisy.Catch.Catch(path: str = 'catch', filepaths=None, catchFile=None, walk: bool = False)
|
|
|
|
|
|
|
|
|
|
Sub class of Cache for handling catchs
|
|
|
|
|
|
|
|
|
|
![image](https://git.utopic.work/PierMesh/piermesh/raw/branch/main/imgs/catchdisplay.png)
|
|
|
|
|
|
2024-08-01 22:03:59 +00:00
|
|
|
|
[🔗 Source](https://git.utopic.work/PierMesh/piermesh/src/branch/main/Daisy/Catch.py)
|
|
|
|
|
|
|
|
|
|
#### addc(peer, node, seperator, head, tail, data, fins=None)
|
|
|
|
|
|
|
|
|
|
#### catches *= {}*
|
|
|
|
|
|
2024-08-01 01:09:11 +00:00
|
|
|
|
#### get(head: str, tail: str, fins=None)
|
|
|
|
|
|
|
|
|
|
Get catch by pieces
|
|
|
|
|
|
|
|
|
|
* **Parameters:**
|
|
|
|
|
* **head** (*str*) – First part of catch (maximum: 4 characters)
|
|
|
|
|
* **tail** (*str*) – Second part of catch (maximum: 16 characters)
|
|
|
|
|
* **fins** – List of (maximum 8 characters) strings at the end of the catch oe None if none
|
|
|
|
|
|
|
|
|
|
#### sget(path: str)
|
|
|
|
|
|
|
|
|
|
Call Cache’s get to get record
|