Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 7

Usage of cachefs

Can someone show how to use cachefs storage type ?
According to documentation 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 =
    request = CreateObject("roURLTransfer")
    request.AddHeader("X-Roku-Reserved-Dev-Id", "")
    request.AddHeader("Authorization","basic " + m.base64Vimeo)
    print("Setting Url in imagestore")
    print(url) = request.getToFile("cachefs:/1.jpg") = url
end function
0 Kudos
3 Replies
Level 9

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.
Kinetics Screensavers
0 Kudos
Level 8

Re: Usage of cachefs

This is not available until 8.0
Tyler Smith
0 Kudos
Level 7

Re: Usage of cachefs

Thank you for your time! Really helpful!
0 Kudos