Recommended Articles for object persistence

Source: Internet
Author: User
This article describes several ways to persist objects other than databases. Has a good reference value, followed by a small series to look at it. Object persistence is a technique for saving objects in memory to a storage device that can be permanently saved, such as a disk. This article describes several ways to persist objects other than databases. As follows: Save as text: The Memory object is saved in a byte stream to the text. Serialize to XML: objects are stored in XML format. Serialize to JSON: Serializes the object into a JSON object and then stores it. Serialize to binary: The object is serialized into a binary byte stream saved to the file. Knowledge points involved: serialization and deserialization of a file stream read and write ListView check box, and arrange horizontally as shown in the "main function is to save the information entered by the user into various formats and read from each document": Save and read the text document code as follows:///<summary >///Save As text///</summary

1. C # object Persistence graphic Code

Summary: This article describes several ways to persist objects in addition to databases. Have a good reference value, follow the small series together to see it

2. Python Pickle Module Data Object Persistence operation

Introduction: Often encountered in the Python program run to get some strings, lists, dictionaries and other data, want to save for a long time, easy to use later, rather than simply put in memory shutdown power loss data. The pickle module in the Python module is useful for converting objects into a format that can be transferred or stored.

3. Example of use of data object persistence enclosure pickle in Python

Introduction: This article mainly introduces the use of data object Persistence storage module Pickle in Python, focusing on the methods of object persistence and file reading in pickle module, and the friends who need to refer to the following

4. db4o

Introduction: Project Description: Db4o is an open-source, pure object-oriented database engine that is easy to use for both Java and. NET developers. At the same time, DB4O has been validated by third parties as an object-oriented database with excellent performance, and the goal of DB4O is to provide a powerful, embedded database engine that can

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.