29 lines
861 B
Markdown
29 lines
861 B
Markdown
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)
|
||
|
||
[🔗 Source](https://git.utopic.work/PierMesh/piermesh/src/branch/main/Daisy/Catch.py)
|
||
|
||
#### addc(peer, node, seperator, head, tail, data, fins=None)
|
||
|
||
#### catches *= {}*
|
||
|
||
#### 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
|