dotnetcore / EasyCaching

:boom: EasyCaching is an open source caching library that contains basic usages and some advanced usages of caching which can help us to handle caching more easier!
MIT License
1.97k stars 325 forks source link

多语言混合编程,.net6用EasyCaching读不了python写的Memcached缓存,请问EasyCaching应该怎么读呢?谢谢 #483

Open Nova2000 opened 1 year ago

Nova2000 commented 1 year ago

Description

[Description of the bug or feature] 多语言混合编程,.net6用EasyCaching读不了其他团队python写的缓存, 尝试了以下方法读取均为null mcProxy.Get("key").Value; mcProxy.Get<byte[]>("key").Value; mcProxy.Get("key").Value; mcProxy.Get("key").Value; 另外调用mcProxy.Exists有如下异常 The binary data must result in a DateTime with ticks between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Arg_ParamName_Name 用.net4.0的dll测试了下可以读取值,读取类型是byte[],转换后可以读取缓存值,请问EasyCaching应该怎么读呢? 谢谢

Specifications

  • Provider : Memcached(version 1.9)
  • Interceptor : .net6.0
  • Serializer : not use
  • System : windows
catcherwong commented 1 year ago

这个是序列化的问题,可以自己尝试扩展的序列化方式