-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add SetFromFile and SetFromDirectory Commands for Json Files #40
Conversation
|
||
//creating json string: | ||
var obj = new Person { Name = "Shachar", Age = 23 }; | ||
string json = JsonSerializer.Serialize(obj); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens in the case the content cannot be serialized as json?
/// <inheritdoc/> | ||
public int SetFromDirectory(RedisValue path, string filesPath, When when = When.Always) | ||
{ | ||
int inserted = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one looks too specific to me.. I don't think we should implement this function
BTW, I think that the users will want to warp all the SetFromFile
calls with a MULTI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can agree on a multi. We have this in python - hence wanted to get it into other clients.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will implement support for Transactions and pipelines in the future and then I will change this command
No description provided.