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

redis bitcount example not working #2578

Closed
ahujamoh opened this issue May 15, 2015 · 4 comments
Closed

redis bitcount example not working #2578

ahujamoh opened this issue May 15, 2015 · 4 comments

Comments

@ahujamoh
Copy link

I was playing with redis and tried the bitcount example: http://redis.io/commands/bitcount
127.0.0.1:6379> SET mykey "foobar"
OK
127.0.0.1:6379> BITCOUNT mykey
(error) ERR unknown command 'BITCOUNT'
my redis version are as follows:

mohit@mohit:$ redis-server --version
Redis server v=3.0.1 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 build=ecf41ef76feca5d
mohit@mohit:
$ redis-cli --version
redis-cli 3.0.1
I verified with the website, 3.0.1 is the latest stable version. What went wrong in this arrangement

@badboy
Copy link
Contributor

badboy commented May 15, 2015

The running instance you're connecting to is probably not version 3.0.1
Verify using the INFO server command.

@ahujamoh
Copy link
Author

redis_version:2.4.14
redis_git_sha1:00000000
redis_git_dirty:0
arch_bits:64
multiplexing_api:epoll
gcc_version:4.6.2
process_id:2433
uptime_in_seconds:9161122
uptime_in_days:106
lru_clock:561885
used_cpu_sys:765.5

I checked the version. It is 2.4.14, can you guide me of how to fix this?

@badboy
Copy link
Contributor

badboy commented May 15, 2015

redis_version:2.4.14

Upgrade your instance (that involves restarting it, so if this is a production instance carefully plan this)

@antirez antirez closed this as completed May 15, 2015
@antirez
Copy link
Contributor

antirez commented May 15, 2015

I replied in the other side (Stack Overflow) and imagined this was the case... and asked for INFO indeed :-) Closed.

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

3 participants