captchanjack / jedis.jl Goto Github PK
View Code? Open in Web Editor NEWA fully featured Julia Redis client.
License: MIT License
A fully featured Julia Redis client.
License: MIT License
When the Jedis system executes commands into Redis, the RESP function uses the string length to determine the byte buffer size. In the case of Julia strings, a unicode character is 1 character size, but has a larger byte size.
For example, on a write command with a non-ascii character such as the en-dash (– vs -) has a 3 byte size but one character size. The en-dash will write into Redis as \xe2\x80\x93
and the last two characters of the total string will be lost.
Jedis.write("test", "A string with an en–dash")
will write
get test
A string with an en\xe2\x80\x93da
I just discovered this project, and almost missed it, since the basically unmaintained Redis.jl is front and center at Google search results, probably because it is part of JuliaDatabases.
I want to ask you if you may be interested, to move this project to this organization as well?
There is a dangerous use of GC in the client setup, which is used in the reconnection logic. See:
prepare!
: https://github.com/captchanjack/Jedis.jl/blob/main/src/client.jl#L113prepare!
in reconnect!
: https://github.com/captchanjack/Jedis.jl/blob/main/src/client.jl#L241Should this be a gc, or a safepoint
call to allow the gc to scan correctly?
This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml
to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix
on this issue.
I'll open a PR within a few hours, please be patient!
The function wait_for_decrypted_data
has been removed in MbedTLS 1.1.6. As a result, when I try to create a client, I get the following error: LoadError: UndefVarError: wait_for_decrypted_data not defined
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.