Giter Site home page Giter Site logo

Comments (9)

nnhy avatar nnhy commented on July 28, 2024

这个方法没有做单元测试,可能是一个bug。
你可以把指令日至打印出来看看

from newlife.redis.

nnhy avatar nnhy commented on July 28, 2024

var redis=new FullRedis(xxx);
redis.Log = XTrace.Log;
redis.ClientLog = XTrace.Log;

打开客户端日志,执行Range命令时,将会在日志看到它发送的命令,然后就知道用哪个时区了

from newlife.redis.

pinzi avatar pinzi commented on July 28, 2024

image
之前我用的时候发现直接用当前时区的时间得到的数据时间不是最近的,我就转成UTC时间解决了。
现在测试发现已经没有这个问题了
image

from newlife.redis.

pinzi avatar pinzi commented on July 28, 2024

image
日志也看不出来是哪个时区的啊?

from newlife.redis.

pinzi avatar pinzi commented on July 28, 2024

image
IOC的方式为啥日志不起作用呢?

from newlife.redis.

pinzi avatar pinzi commented on July 28, 2024

image
image
最新版还有这么一个bug,之前的版本5.5的反而没有这个问题

from newlife.redis.

nnhy avatar nnhy commented on July 28, 2024

关于时间时区的问题,redis和json序列化根本就没有处理时区,你存进去的是啥,读取出来就是啥,当然需要你自己处理。
RedisStream的id是redis内部生成,使用了UTC的Unix时间,传入当前时间时要处理一下。

from newlife.redis.

nnhy avatar nnhy commented on July 28, 2024

image IOC的方式为啥日志不起作用呢?

关于这个问题,XTrace.UseConsole必须放在第一行,所有代码直线,否则无法把日志输出到控制台

from newlife.redis.

nnhy avatar nnhy commented on July 28, 2024

XTrace.UseConsole必须放在第一行,所有代码之前,否则无法把日志输出到控制台

from newlife.redis.

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.