Re: [amplifyjs] defining storage types?

23 views
Skip to first unread message

Scott González

unread,
Sep 4, 2012, 12:47:40 PM9/4/12
to ampl...@googlegroups.com
Can you explain why you would want to do this?


On Tue, Sep 4, 2012 at 12:45 PM, Patrick Clancy <patrick.c...@gmail.com> wrote:
Hello

I was trying to figure out from the Store docs if you can define a limited list of types. I'd like to use only sessionStorage and userData.  Is there a way to define this with the options hash?

Patrick

Patrick Clancy

unread,
Sep 4, 2012, 12:55:19 PM9/4/12
to ampl...@googlegroups.com
The technical requirements don't allow the use of localStorage, but do allow session and user. (go figure...)
If it's not possible... then I can conditionally pick the specific storage type from within my script.

Scott González

unread,
Sep 4, 2012, 1:00:17 PM9/4/12
to ampl...@googlegroups.com
You can detect support via `amplify.store.sessionStorage` and you can set what gets used with `amplify.store.type = "sessionStorage"`, but this honestly seems silly.

Patrick Clancy

unread,
Sep 4, 2012, 1:16:40 PM9/4/12
to ampl...@googlegroups.com
Thanks for the help. I've just started to use Amplifyjs. It looks totally awesome!

but this honestly seems silly.

I agree...
Reply all
Reply to author
Forward
0 new messages