Results 1 to 6 of 6

Thread: redis

  1. #1
    buptstehc is offline Registered User
    Name: chuan huang
    Organization: CISDI Information Technology Co., Ltd
    Project: protocol adapter
    Join Date
    Jun 2011
    Posts
    7

    redis

    Hi, all! I want to implement a key/value system. Since redis doesn't support object, so i want to get the serialized data from ice , which then be saved in redis. the question is, how can i get the serialized binary data and how to deserialize it to object after retrieving from redis? thanks!

  2. #2
    buptstehc is offline Registered User
    Name: chuan huang
    Organization: CISDI Information Technology Co., Ltd
    Project: protocol adapter
    Join Date
    Jun 2011
    Posts
    7
    Quote Originally Posted by buptstehc View Post
    Hi, all! I want to implement a key/value system. Since redis doesn't support object, so i want to get the serialized data from ice , which then be saved in redis. the question is, how can i get the serialized binary data and how to deserialize it to object after retrieving from redis? thanks!
    in the Overview of the Ice Protocol - Ice 3.4 - ZeroC, saying that "The Ice protocol is suitable for building highly-efficient event forwarding mechanisms because it permits forwarding of a message without knowledge of the details of the information inside a message. This means that messaging switches need not do any unmarshaling and remarshaling of messages — they can forward a message by simply treating it as an opaque buffer of bytes".

    is there any api or service to work with this?

  3. #3
    mwilson is offline Registered User
    Name: Mark Wilson
    Organization: University of Rochester
    Project: Omega EP laser
    Join Date
    Jul 2005
    Location
    Rochester, NY
    Posts
    100
    Check out Chapter 35, "Dynamic Ice"
    Mark E. Wilson
    Lead Programmer/Analyst
    Omega EP Project
    Laboratory for Laser Energetics (www.lle.rochester.edu)
    University of Rochester
    Rochester, NY 14623

  4. #4
    buptstehc is offline Registered User
    Name: chuan huang
    Organization: CISDI Information Technology Co., Ltd
    Project: protocol adapter
    Join Date
    Jun 2011
    Posts
    7
    Quote Originally Posted by mwilson View Post
    Check out Chapter 35, "Dynamic Ice"
    thanks! I have another question . there is a client and server both written by ice. the client sends a object to server, then server deserialize the received object and save the binary buffer. the stream interface in "Dynamic Ice" seems to require extract or insert object's property one by one. so i want to know is there any api can get the binary buffer before ice deserialize the object?

  5. #5
    mwilson is offline Registered User
    Name: Mark Wilson
    Organization: University of Rochester
    Project: Omega EP laser
    Join Date
    Jul 2005
    Location
    Rochester, NY
    Posts
    100
    The --stream option to slice2cpp (or whatever) will generate Ice code for you to create and extract from binary buffers.
    Mark E. Wilson
    Lead Programmer/Analyst
    Omega EP Project
    Laboratory for Laser Energetics (www.lle.rochester.edu)
    University of Rochester
    Rochester, NY 14623

  6. #6
    buptstehc is offline Registered User
    Name: chuan huang
    Organization: CISDI Information Technology Co., Ltd
    Project: protocol adapter
    Join Date
    Jun 2011
    Posts
    7
    Quote Originally Posted by mwilson View Post
    The --stream option to slice2cpp (or whatever) will generate Ice code for you to create and extract from binary buffers.
    thanks! that is exactly what i want.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •