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

进程问题 #25

Closed
Harlber opened this issue Sep 24, 2018 · 3 comments
Closed

进程问题 #25

Harlber opened this issue Sep 24, 2018 · 3 comments

Comments

@Harlber
Copy link

Harlber commented Sep 24, 2018

看了项目描述,初步看了下代码,有以下2点疑问点需要帮助:

  • protobuf文件支持自定义么
  • 跨进程可见么
@lingol
Copy link
Collaborator

lingol commented Sep 25, 2018

  1. I don't quite understand what you mean by customizing protobuf files. Can you describe what you're trying to do in detail?
  2. If you mean MMKV's inter-process accessing, then YES. Any MMKV inited with MMKV.MULTI_PROCESS_MODE can be opened by multi processes.

@Harlber
Copy link
Author

Harlber commented Sep 25, 2018

类似

syntax = "proto3"; 

entity KVEntity {
    string key = 1;
    string value = 2;
}

syntax = "proto3"; 

entity KVEntity {
    string myKey = 1;
    string myValue = 2;
}

多进程可见的问题是之前遇到的一些三方框架出于安全等其他原因,不支持多进程访问,所以在此请教下多进程访问数据状态是否一致

@lingol
Copy link
Collaborator

lingol commented Sep 25, 2018

类似

syntax = "proto3"; 

entity KVEntity {
    string key = 1;
    string value = 2;
}

syntax = "proto3"; 

entity KVEntity {
    string myKey = 1;
    string myValue = 2;
}

多进程可见的问题是之前遇到的一些三方框架出于安全等其他原因,不支持多进程访问,所以在此请教下多进程访问数据状态是否一致

There's no fundamental difference between those two definitions.
What are you trying to achieve?

@Harlber Harlber closed this as completed Sep 25, 2018
@sven-brobonds sven-brobonds mentioned this issue Jul 21, 2020
@billdizl billdizl mentioned this issue Apr 28, 2022
Closed
This was referenced Oct 25, 2023
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

2 participants