Comments (6)
This is a documentation error not a code bug. The syntax of exhscan
is fully compatible with redis hash now. We have corrected the documentation. Thanks for your report :).
from tairhash.
thank for you reply.
from tairhash.
This is a documentation error not a code bug. The syntax of
exhscan
is fully compatible with redis hash now. We have corrected the documentation. Thanks for your report :).
@chenyang8094 hi, i found exhscan
is not fully compatible hscan about response body.
hscan
return the first array type is String
and exhscan
return is Long
.
it will cause exception when usage lettuce decode response,
because MapScanOutput
cann't decode number (integer) response values
from tairhash.
@jjz921024 Hello, I understand your question. Can you provide your complete code so that we can reproduce this problem quickly?
from tairhash.
@yangbodong22011 I just want to extend lettuce api for support TairHash command.
Except of EXHSCAN
, other commands is finish.
The problem is exhscan
reponse must be decode ArrayList<Object>
that is not friendly for user.
It should compatible with hscan
command in lettuce implement,
// it ok, but not friendly
List<Object> exHScan1(K key, ScanCursor scanCursor, ScanArgs scanArgs);
// compatible with hscan API, but is will throw exception because of can't decode long
MapScanCursor<K, V> exHScan2(K key, ScanCursor scanCursor, ScanArgs scanArgs);
I have create a repo for this demo
https://github.com/jjz921024/redis-client-demo
from tairhash.
@yangbodong22011 I just want to extend lettuce api for support TairHash command.
Except of
EXHSCAN
, other commands is finish.The problem is
exhscan
reponse must be decodeArrayList<Object>
that is not friendly for user. It should compatible withhscan
command in lettuce implement,// it ok, but not friendly List<Object> exHScan1(K key, ScanCursor scanCursor, ScanArgs scanArgs); // compatible with hscan API, but is will throw exception because of can't decode long MapScanCursor<K, V> exHScan2(K key, ScanCursor scanCursor, ScanArgs scanArgs);I have create a repo for this demo https://github.com/jjz921024/redis-client-demo
Yes, there is indeed an incompatibility here, I have fixed it, the PR is #11
from tairhash.
Related Issues (13)
- [NEW] Add exhmset with expire and exhmset with version apis
- [BUG] how to listener field expired event? HOT 2
- Question about module functionality HOT 2
- where the redis version 7.0? HOT 2
- [FEATURE] ADD Dockerfile may be is better for experience HOT 1
- [NEW] Add `NVER` to only insert field when version is > current version HOT 5
- rdb save may sometimes cause downtime HOT 4
- Need a performance comparison chart
- Potential performance inconsistency HOT 3
- [BUG] Can not get memory size for MEMORY USAGE HOT 2
- 可以支持ARM吗? HOT 1
- Rewrite big tairhash
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 tairhash.