Support the ongoing development of Laravel.io →
Configuration Requests Views
Last updated 1 year ago.
0

http://stackoverflow.com/questions/22001247/redis-how-to-store...

I think that should answer your question

TL:DR seems like you should pass your array as a JSON string (possibly doing $redis->set())

Last updated 9 years ago.
0

Omg, thanks!! That was it :) After parsing the JSON via jquery I was able to post both values into the console log!

socket.on('val.update', function ( json ) {
		//Do something with data
		var data = JSON.parse( json );
		console.log('updated: '+ data.val);
		console.log('slug: '+ data.slug);

		$( '.inner[data-name="'+ data.slug +'"]' ).fadeOut( 300, function() {
			$( this ).html( data.val );
		}).fadeIn( 300 );
	});
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ncovill ncovill Joined 12 Jan 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.