kidasov
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2017
05:54 AM
Usage of cachefs
Can someone show how to use cachefs storage type ?
According to documentation https://sdkdocs.roku.com/display/sdkdoc/File+System we can use cachefs for caching images. But I can not simply create a task and save requested data in cachefs. For example like that.
According to documentation https://sdkdocs.roku.com/display/sdkdoc/File+System we can use cachefs for caching images. But I can not simply create a task and save requested data in cachefs. For example like that.
function executeTask()
url = m.top.url
request = CreateObject("roURLTransfer")
request.SetCertificatesFile("common:/certs/ca-bundle.crt")
request.AddHeader("X-Roku-Reserved-Dev-Id", "")
request.AddHeader("Authorization","basic " + m.base64Vimeo)
request.InitClientCertificates()
request.SetURL(url)
print("Setting Url in imagestore")
print(url)
m.top.response = request.getToFile("cachefs:/1.jpg")
m.top.request = url
end function
3 REPLIES 3

squirreltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2017
08:21 AM
Re: Usage of cachefs
It says its a beta function, but doesn't specify more than that. I'm on 7.7 4139 and it does not appear to be available.
m.filez.Copyfile( "pkg:/images/button.png" , "cachefs:/button.png" ) returns false.
m.filez.Copyfile( "pkg:/images/button.png" , "cachefs:/button.png" ) returns false.
Kinetics Screensavers
Tyler_Smith
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2017
10:17 AM
Re: Usage of cachefs
This is not available until 8.0
Tyler Smith
kidasov
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2017
06:28 AM
Re: Usage of cachefs
Thank you for your time! Really helpful!