Update Jarvis implement

This commit is contained in:
Liu Zhicong
2024-01-15 22:52:13 -08:00
parent 5885301c19
commit 0bc2aaf45b
9 changed files with 802 additions and 170 deletions
+16
View File
@@ -0,0 +1,16 @@
# NDN Storage
```python
class NDNStorage:
async def get(self,data_name:str)->Dict:
#return object desc, include local cache path
async def set_file(self,local_path)->str:
# return data_name
async def read_content(self,data_name:str)->bytes:
# return bytes
# 这里不但会读取本地缓存,还会对内容进行验证
```