using riak to store user sessions

Luke Bakken lbakken at basho.com
Thu Jun 2 12:40:21 EDT 2016


Hi Norman,

A quick search turns up this Node.js module:
https://www.npmjs.com/package/express-session

There is currently not a session store for Riak
(https://www.npmjs.com/package/express-session#compatible-session-stores)

Since memcached operates as a key/value store, forking the connector
for that session store as a starting point would be your best bet.

https://github.com/balor/connect-memcached

You would then use the Riak Node.js client to fetch and store data:
https://github.com/basho/riak-nodejs-client

--
Luke Bakken
Engineer
lbakken at basho.com


On Thu, Jun 2, 2016 at 6:19 AM, Norman Khine <norman at khine.net> wrote:
> hello, i am trying to setup a node.js/express application to use riak to
> store the logged in users' sessions as detailed
> http://basho.com/use-cases/session-data/
>
> i have setup the dev cluster on my machine and everything is running fine.
>
> what is the correct way to set this up?
>
> any advise much appreciated.
>
>
>
> --
> %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for
> c in ",adym,*)&uzq^zqf" ] )
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>




More information about the riak-users mailing list