Documentation ¶
Overview ¶
Package cachedshell adds some helpful caching functionality to the go-ipfs-api shell
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shell ¶
Shell embeds the go-ipfs-api shell with an extra *Cache
func (*Shell) AddPermanentFile ¶
AddPermanentFile adds a file by its filename to IPFS returns the resulting object's hash. The hash is cached on a per-filename basis, so future calls to this method simply return the cached version of the hash for the same filename, assuming that the file has not changed.
func (*Shell) ClearPermanentFile ¶
ClearPermanentFile clears the cache value for the pernanent file hash previously added by AddPermanentFile.
Click to show internal directories.
Click to hide internal directories.