-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
add subscription based cache refresh.
The current design is optimisic and friendly, it assumes that nobody will spam cache_nft for invalid CIDs.
subscribe specifies the port and protocol used for a callback, the ip address is implied.
unsubscribe removed the ip address from the callback.
has_template_cached returns true if a specific nft template is already cached, based on a CID.
this will internally call get_nft_template_list, which lists all known templates.
cache_template instructs the node to cache a specific nft template, based on a CID.
this will internally call get_nft_template_owner, which caches all template related information.
- add subscribe
{"action": "subscribe", "protocol":"^http|https$", "port":"^[0-9'+$"} - add unsubscribe
{"action": "unsubscribe"} - add has_template_cached
{"action": "has_template_cached", "cid", "<cid>"} - add cache_template
{"action": "cache_template", "cid", "<cid>"}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request