Comments (9)
这个方法没有做单元测试,可能是一个bug。
你可以把指令日至打印出来看看
from newlife.redis.
var redis=new FullRedis(xxx);
redis.Log = XTrace.Log;
redis.ClientLog = XTrace.Log;
打开客户端日志,执行Range命令时,将会在日志看到它发送的命令,然后就知道用哪个时区了
from newlife.redis.
之前我用的时候发现直接用当前时区的时间得到的数据时间不是最近的,我就转成UTC时间解决了。
现在测试发现已经没有这个问题了
from newlife.redis.
from newlife.redis.
from newlife.redis.
最新版还有这么一个bug,之前的版本5.5的反而没有这个问题
from newlife.redis.
关于时间时区的问题,redis和json序列化根本就没有处理时区,你存进去的是啥,读取出来就是啥,当然需要你自己处理。
RedisStream的id是redis内部生成,使用了UTC的Unix时间,传入当前时间时要处理一下。
from newlife.redis.
关于这个问题,XTrace.UseConsole必须放在第一行,所有代码直线,否则无法把日志输出到控制台
from newlife.redis.
XTrace.UseConsole必须放在第一行,所有代码之前,否则无法把日志输出到控制台
from newlife.redis.
Related Issues (20)
- DNS issue if using a cluster redis only on version above ( "NewLife.Redis" Version="5.1.2023.101") HOT 6
- 返回空,看不见数据 HOT 1
- 延迟队列是不是不可以消息确认才删除 HOT 3
- 可靠redis队列里的高级用法中消息体和消息键好像不是可靠消息 HOT 2
- RedisList枚举空LIST列表时报空异常
- Which NewLife.Redis versions supports Redis 7.0? HOT 1
- .Net8 support HOT 5
- 使用 List 設定 expire 沒有作用 ? HOT 2
- 怎么读取STREAM数据 HOT 1
- 集群模式下,批量删除key会报错 HOT 1
- 项目NewLife.Extensions.Caching.Redis遗漏程序集签名
- 给一个配置 能关闭主从探索功能 HOT 1
- BLPOP弹出字符串时,抛非标准Json字符串异常
- 集群key中包含'{}'时,发生节点MOVED HOT 1
- 连接[://192.168.0.32:3838][3000ms]超时! HOT 3
- 配置多个redis地址时,如果第一个地址无法访问是不是不会自动切换。 HOT 5
- 使用RedisHash对象HMGet方法获取对象内单个记录时偶然性报错,版本5.5.2023.1201 HOT 6
- 字段数组有默认值的时候获取不到数据 HOT 3
- TimeOnly类型写入到 redis之后,变成了一个json对象那种格式,读取redis之后获取到的值无法用TimeOnly接收。 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from newlife.redis.