Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for storing messages in game environment

A storage device and message technology, applied in the Internet field, can solve problems such as unclear storage structure, high complexity of message storage methods, and poor data storage efficiency, and achieve the effects of clear message storage structure, improved efficiency, and reduced complexity

Active Publication Date: 2020-06-16
TENCENT TECH (SHENZHEN) CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] Embodiments of the present invention provide a method and device for storing messages in a game environment, aiming to solve the problem of poor data storage efficiency due to the high complexity of existing message storage methods and unclear storage structures

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for storing messages in game environment
  • Method and device for storing messages in game environment
  • Method and device for storing messages in game environment

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0057] Such as figure 2 As shown, a first embodiment of a method for storing messages in a game environment of the present invention is proposed, and the method for storing messages in a game environment includes:

[0058] Step S10, tracking the game player's activities to capture the generation of the message, when a new message is generated, storing the new message in an ordered collection type of storage medium;

[0059] In this embodiment, the storage medium of the ordered set type is zset, and zset adds an order on the basis of set to form an ordered set. Among them, set is a collection, which is an unordered collection of string type. Set is realized through hash table. The complexity of adding, deleting and searching is O(1). For the collection, we can take union, intersection or difference set. Through these operations, we can realize the classification of friend recommendations and blogs in SNS (specifically referring to Internet application services that help peop...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a message storage method in a game environment. The method comprises the following steps that: tracking the activity of a game player to capture the generation of a message, and when a new message is generated, storing the new message in storage media of an ordered set type; according to the message marking rule of the ordered set, automatically generating the identification information of the new message, wherein the identification information is time identification information; and carrying out associative storage on the identification information which is automatically generated and the new message to a storage position related to a user. The invention also discloses a message storage device in the game environment. By use of the message storage method and device, the complexity degree of message storage is lowered, a timestamp is taken as a subscript to distinguish different messages to enable a message storage structure to be clear, and message storage efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a method and device for storing messages in a game environment. Background technique [0002] With the continuous development of smart technologies, more and more smart applications are loaded on terminals. With the increase of applications, more messages need to be stored. The current message storage methods include: 1) DB: database, specifically refers to the mysql database. The storage capacity is large, but as the data volume increases, the retrieval efficiency decreases. [0003] 2) CKV: memory-level key-value storage structure. The storage capacity of a single piece of data is small, and the retrieval efficiency is high, but a key needs to be specified. [0004] The specific storage procedures of the above two storage methods are: Solution 1): personal messages are stored in the DB, and each message automatically increments the number. [0005] Scheme 2): Personal...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/06
CPCG06F3/061G06F3/0631G06F3/0676
Inventor 李鹏宏徐晓敏
Owner TENCENT TECH (SHENZHEN) CO LTD