Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object Storage #24

Closed
iamjoshljohnson opened this issue Mar 26, 2015 · 7 comments
Closed

Object Storage #24

iamjoshljohnson opened this issue Mar 26, 2015 · 7 comments

Comments

@iamjoshljohnson
Copy link

Noticed that Flintstone doesn't currently support object storage per key but will support an object loaded into an array.

Should there be support for object storage directly?

@TheDigitalOrchard
Copy link

You could serialize the objects and store that as a string value.

@iamjoshljohnson
Copy link
Author

Flintstone will already do that for you. If you store an array with one object in it, FlintstoneDB will serialize the object when it stores. But then I am storing an array with an object.

I think Flintstone can support storing Objects directly relatively easy. Wanted to see if you guys agreed. That way a User key could be associated with a User object.

@iamjoshljohnson
Copy link
Author

It looks to me that Flintstone already supports storing objects directly. I will fork update the datatype check to remove the this restriction.

@iamjoshljohnson
Copy link
Author

Im going to look into this again and see if I can get it working. I think this would be a great addition to this piece of software!

@fire015
Copy link
Owner

fire015 commented Apr 2, 2015

Interesting piece of code from Laravel... https://github.com/laravel/framework/blob/5.0/src/Illuminate/Queue/SerializesModels.php

@iamjoshljohnson
Copy link
Author

Hmmm...That looks interesting! I'll take a look at this

@iamjoshljohnson
Copy link
Author

So the problem is with an associative array! We can't store an associative array in Json. It is physically impossible. So I think instead of just allowing the data to be stored, there should be a constraint to now allow you to store associative arrays in a JSON format. This makes sense to me. Any thoughts?

@fire015 fire015 closed this as completed Apr 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants