RedemptionC edited a comment on issue #2011:
URL: 
https://github.com/apache/apisix-dashboard/issues/2011#issuecomment-891843234


   > > > If you just want them to look the same, you can convert them to json 
instead of printing directly. @RedemptionC
   > > 
   > > 
   > > Or , do I misunderstand something?It will be greatly appreciated if you 
could point out that
   > 
   > It just explains why they look different. You need to search which way is 
more suitable for object comparison.
   
   I parsed the cache value into json,like this :
   ```
   consumer.Get is called
   in get
   cache: 
key(andy):val({"username":"andy","plugins":{"key-auth":{"key":"key-of-john"}},"create_time":1627739045,"update_time":1627744978})
   etcd:  
key(/apisix/consumers/andy):val({"username":"andy","plugins":{"key-auth":{"key":"key-of-john"}},"update_time":1627744978,"create_time":1627739045})
   cache content and etcd content on this key(andy) is the same: false
   ```
   the output suggests that they are almost the same,except the create time and 
update time are in different order


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to