$plugin_function "is not a function"

$plugin_function "is not a function"

Hi,

I created my first plug-in using the template in the documentation. I don't need any DOM element for it to work, so ideally, I'd like to call it with $.scriptCache('function_name',param) but it throws an error saying $.scriptCache is not a function.

While something like $("body").scriptCache('function_name',param) works as intended.

What am I doing wrong? I use JQuery 1.5.1 if it changes anything.