MCPcopy Create free account
hub / github.com/QuantumNous/new-api / WriteDiskCacheFileString

Function WriteDiskCacheFileString

common/disk_cache.go:83–85  ·  view source on GitHub ↗

WriteDiskCacheFileString 写入字符串到磁盘缓存文件

(cacheType DiskCacheType, data string)

Source from the content-addressed store, hash-verified

81
82// WriteDiskCacheFileString 写入字符串到磁盘缓存文件
83func WriteDiskCacheFileString(cacheType DiskCacheType, data string) (string, error) {
84 return WriteDiskCacheFile(cacheType, []byte(data))
85}
86
87// ReadDiskCacheFile 读取磁盘缓存文件
88func ReadDiskCacheFile(filePath string) ([]byte, error) {

Callers 1

writeToDiskCacheFunction · 0.92

Calls 1

WriteDiskCacheFileFunction · 0.85

Tested by

no test coverage detected