Coder Social home page Coder Social logo

Comments (13)

quan01994 avatar quan01994 commented on May 22, 2024

i think You ignore the time zone

from easycaching.

quan01994 avatar quan01994 commented on May 22, 2024

image
image

from easycaching.

catcherwong avatar catcherwong commented on May 22, 2024

@quan01994

Hey, I add a test named Issues16_DateTimeTest for your case.

It runs well for me!

from easycaching.

quan01994 avatar quan01994 commented on May 22, 2024

@catcherwong
image

it's my model
image

services.AddDefaultMessagePackSerializer();

from easycaching.

quan01994 avatar quan01994 commented on May 22, 2024

you can test this.

from easycaching.

quan01994 avatar quan01994 commented on May 22, 2024

image
if i delete this code .i get this exception

from easycaching.

quan01994 avatar quan01994 commented on May 22, 2024

EasyCaching.Serialization.Json
I did not find it on nuget

from easycaching.

catcherwong avatar catcherwong commented on May 22, 2024

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();
        }

from easycaching.

catcherwong avatar catcherwong commented on May 22, 2024

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 .

from easycaching.

quan01994 avatar quan01994 commented on May 22, 2024

i got this ,
image

i wan't use json FormatterSerializer
JsonObject is in Pomelo.JsonObject

from easycaching.

catcherwong avatar catcherwong commented on May 22, 2024

@quan01994

I test the code, and it also return the correct result.

screen shot 2018-02-28 at 11 11 40 pm

Here is my test code.

EasyCachingDateTime

from easycaching.

quan01994 avatar quan01994 commented on May 22, 2024

ok,thank you。

from easycaching.

quan01994 avatar quan01994 commented on May 22, 2024

I used the wrong method when I used it 。so i get some Inexplicable mistake。
Very much looking forward to new features
不过我还是用中文来提问题吧,说英文还要想半天。

from easycaching.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.