Skip to content
This repository was archived by the owner on Apr 6, 2019. It is now read-only.

Commit 8643ee7

Browse files
authored
Merge pull request #17 from m-harnish/master
Fix typo with evalsha
2 parents a72f818 + d89fa60 commit 8643ee7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
build
2626
deps
27+
target
2728

2829
# Executables
2930
*.exe
@@ -37,9 +38,10 @@ deps
3738
*.VC.db
3839
*.opendb
3940
.gitignore
41+
.project
4042
cmake_install.cmake
4143

4244
CMakeCache.txt
4345
CMakeFiles/
4446
Release/
45-
Debug/
47+
Debug/

sources/redis_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ redis_client::eval(const std::string& script, int numkeys, const std::vector<std
488488

489489
redis_client&
490490
redis_client::evalsha(const std::string& sha1, int numkeys, const std::vector<std::string>& keys, const std::vector<std::string>& args, const reply_callback_t& reply_callback) {
491-
std::vector<std::string> cmd = {"EVAL", sha1, std::to_string(numkeys)};
491+
std::vector<std::string> cmd = {"EVALSHA", sha1, std::to_string(numkeys)};
492492
cmd.insert(cmd.end(), keys.begin(), keys.end());
493493
cmd.insert(cmd.end(), args.begin(), args.end());
494494
send(cmd, reply_callback);

0 commit comments

Comments
 (0)