unknown command 'SETEX'

1,571 views
Skip to first unread message

Peter Bengtsson

unread,
Aug 26, 2011, 10:11:24 AM8/26/11
to redi...@googlegroups.com
On my Debian Squeeze server I'm running Redis 2.2.12 according to `apt-cache show redis-server`. Strangely however, it appears to not support SETEX::

redis> SETEX samplekey 10 "HEllO"
Unknown command 'SETEX'
redis> 

What might that be about??
I noticed that SETEX was introduced in 1.3.10 http://redis.io/commands/setex 




$ apt-cache show redis-server
Package: redis-server
Priority: optional
Section: database
Installed-Size: 208
Maintainer: Chris Lamb &[email address]>
Architecture: amd64
Source: redis
Version: 2:1.2.6-1
Depends: libc6 (>= 2.7), adduser
Filename: pool/main/r/redis/redis-server_1.2.6-1_amd64.deb
Size: 93406
MD5sum: 10ff7aff6fe175e901799116db6722fa
SHA1: 205ff850ccdb3eace5c96fc802671a2367362efb
SHA256: e3b631b996fb6a637861458e10cc8f4c1b909a0a197da8707d9fa862fab01529
Description: Persistent key-value database with network interface
 Redis is a key-value database in a similar vein to memcache but the dataset
 is non-volatile. Redis additionally provides native support for atomically
 manipulating and querying data structures such as lists and sets.
 .
 The dataset is stored entirely in memory and periodically flushed to disk.
Tag: implemented-in::c, qa::low-popcon, role::program

Package: redis-server
Priority: optional
Section: database
Installed-Size: 604
Maintainer: Chris Lamb &[email address]>
Architecture: amd64
Source: redis
Version: 2:2.2.12-1~bpo60+1
Depends: libc6 (>= 2.7), adduser
Filename: pool/main/r/redis/redis-server_2.2.12-1~bpo60+1_amd64.deb
Size: 232244
MD5sum: 2a4e8be54bbbd9a23d060cdb54e97d6c
SHA1: 5ec96f060e87d4a5e0ed3b5effefc44d3cdc1beb
SHA256: 0d6e1eb759520f7da1c9967d8b8c5d314b4a5321e859b0b29704d06c5140e819
Description: Persistent key-value database with network interface
 Redis is a key-value database in a similar vein to memcache but the dataset
 is non-volatile. Redis additionally provides native support for atomically
 manipulating and querying data structures such as lists and sets.
 .
 The dataset is stored entirely in memory and periodically flushed to disk.

Greg Andrews

unread,
Aug 29, 2011, 5:31:59 PM8/29/11
to redi...@googlegroups.com
I think you're misreading the version number returned by the apt-cache command.  My searches at packages.debian.org indicate that the version in Squeeze is v1.2.x, not 2.2.x.

But the Redis instance will tell you its version number.  Send it the "INFO" command and look for 'redis_version'.

  -Greg

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To view this discussion on the web visit https://groups.google.com/d/msg/redis-db/-/CWjgF_DDU5cJ.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.

Josiah Carlson

unread,
Aug 30, 2011, 8:00:17 PM8/30/11
to redi...@googlegroups.com
From the OPs email:

$ apt-cache show redis-server
[snip]
Version: 2:1.2.6-1

That's version 1.2.6 of Redis packaged for debian.

- Josiah

Reply all
Reply to author
Forward
0 new messages