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