Forum Discussion

destruk's avatar
destruk
Streaming Star
15 years ago

Roku Registry (16KB)

What happens when this fills up with keys? Will the channel crash to the debugger or will it ignore the write request, or will it automatically remove the oldest keys to make room?

6 Replies

  • jbrave's avatar
    jbrave
    Channel Surfer
    I think it plays the pacman "they meet" theme song 🙂

    would be fun to find out, actually, but the question is, is it really 16k or is there some overhead so that you really only get 10k or something? You could try storing a 16k string to the registry, retrieving it, and then comparing it to the original.

    - Joel
  • renojim's avatar
    renojim
    Community Streaming Expert
    I experimented with this quite a while back and I don't think I ever got a save to the registry to fail. However, it becomes so slow to store or retrieve anything from the registry after a while that you wouldn't want to store that much information in it.

    -JT
  • destruk's avatar
    destruk
    Streaming Star
    How can I count how many registry keys exist for my app, without knowing their specific names? - so I could delete some by the name discovered in a loop or list of some kind?
  • Look at the Component Guide in the SDK for info on roRegistry and roRegistrySection, it should be fairly straight forward.

    Be aware that any channels packaged with the same dev id will share the same registry. If one channel is in the habit of deleting unknown registry entries, and another channel uses the same dev id and stores data in the registry, you could have issues.
  • "kbenson" wrote:

    Be aware that any channels packaged with the same dev id will share the same registry.


    For clarification, I mean the dev id created by the Roku box in the packaging process (NOT your Roku developer account). Others dev ids can be generated, and as long as you have the id/password from when it was generated, you can switch between them.