How to store an array as the value in Tokyo Cabinet?

Posted by punkish on Stack Overflow See other posts from Stack Overflow or by punkish
Published on 2010-06-08T20:21:30Z Indexed on 2010/06/08 20:22 UTC
Read the original article Hit count: 294

Filed under:

Is there any way I can store an array of numbers in a Tokyo Cabinet db? For example, I have predictable arrays of values such as

1 => [1, 2, 444, 0.987],
2 => [2, 23, 123, -0.234],
3 => [3, 1, 34, 1.456]

I would like to store the above in a TC fixed length db. Is there a way to store the above as arrays instead of as strings?

© Stack Overflow or respective owner

Related posts about tokyocabinet