-
Notifications
You must be signed in to change notification settings - Fork 322
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
i get a problem in my code #16
Comments
i think You ignore the time zone |
Hey, I add a test named Issues16_DateTimeTest for your case. It runs well for me! |
services.AddDefaultMessagePackSerializer(); |
you can test this. |
EasyCaching.Serialization.Json |
If you want to use MessagePackSerializer as the default Serializer, you should not put it before the redis provider. AddDefaultRedisCache register DefaultBinaryFormatterSerializer as the serializer. The last one will be used!! When using DefaultBinaryFormatterSerializer , you need to mark the class as Serializable public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
services.AddDefaultRedisCache(option=>
{
option.Endpoints.Add(new ServerEndPoint("127.0.0.1", 6379));
option.Password = "";
});
//put here!
services.AddDefaultMessagePackSerializer();
} |
EasyCaching.Serialization.Json is not published yet! Maybe this weekend or next week I will publish a new version of them. It will contains the updates of #12 . |
I test the code, and it also return the correct result. Here is my test code. |
ok,thank you。 |
I used the wrong method when I used it 。so i get some Inexplicable mistake。 |
it's my code to update redis
this activity has some property
but second to insertOrUpdate Datetime? will change value 。
I'm sure I got the value is right from foreground ,
but update reids or get from redis has some problem
The text was updated successfully, but these errors were encountered: