Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HMSET throws an error if values contained in hash struct are not strings #2

Open
MWers opened this issue Oct 24, 2013 · 0 comments
Open

Comments

@MWers
Copy link
Owner

MWers commented Oct 24, 2013

This code...

<cfscript>
redisKey = "example:command:hmset";
hashValues = {};
hashValues["one"] = 1;
hashValues["two"] = 2;
hashValues["three"] = 3;
application.redis.hmset(redisKey, hashValues);
</cfscript>

...throws the following error on Railo...

java.lang.Double cannot be cast to java.lang.String

...when the hash values are passed to Jedis.

Not sure if there's a programmatic solution to avoid this or if the solution is "only use strings within hash value structs".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant