I'm trying to use `forge.prefs` to store variables but nothing seems to be saving.

I am using the following:

```
var all = forge.prefs.keys(function(keysArray){ return keysArray},
                           function(content){return content});

forge.logging.log(all);

```

But this always returns `undefined`
I am also having the same issue with setting, nothing seems to be working.

```
var set = forge.prefs.set(key,value,function(){},function(content){return content;});
forge.logging.log(set);

```

Again returns `undefined` and no error or anything.

Am I doing something wrong?

Using the [docs found here](https://trigger.io/modules/prefs/current/docs/index.html)

**UPDATE**

I won't to do something like the following:

```
var get = forge.prefs.get(key, 
                    function(value){return value;}, 
                    function(error){forge.logging.log(error);
});

if(get){
// do something here
}else{
// do something here
}

```