01:57
joaojeronimo joined
04:10
<jyfl987>
hi, is there a way to configure a default expire timeout value globally?
04:10
<ctrabold>
Hi! I run Redis server version 2.4.8 and still get <ERR unknown command 'HSET'> - why?
04:12
<ctrabold>
redis 127.0.0.1:6379> HSET myhash field1 "foo" -> (error) ERR unknown command 'HSET'
04:15
<ctrabold>
- works fine on http://try.redis-db.com/ though. I have no clue what I do wrong. Help very much appreciated!
04:15
<jyfl987>
ctrabold: try info
04:16
<ctrabold>
> info -> redis_version:1.2.0 --- ??
04:18
<ctrabold>
jyfl987: Thanks for that pointer!
04:20
<jyfl987>
ctrabold: ok hope someone could help me
04:50
<ctrabold>
jyfl987: FYI The issue was caused by an older redis version that was running as a service in the background (installed by package I guess). Removed it -- solved it :) thanks again!
04:54
<jyfl987>
ctrabold: good luck
06:54
<CharlieY>
hello all - quick question to the experts. I would like to use a sorted set. But this set is getting read from multiple servers - each trying to read the top item by score. Is there a pop command for this to ensure I don't get a read duplicate?
06:54
<CharlieY>
or another command?
06:55
<CharlieY>
we are using sorted set because the data is timestamped and we need to pull it out by the timestamp.
07:23
brianseeders joined
10:59
<nebulawars>
What is the correct place general design concept discussions, I'm trying to learn redis and currently reading the redis.conf when I come across the 'security' section. Seriously .. no delay added to authentication if it fails, and security by obscurity (rename-command). Comming from a security background.. I shake my head. The correct is?? (cloning git and providing patch?)
11:00
<nebulawars>
the correct forum, I meant.
11:05
napperjabber joined
11:09
<ScottKevill>
nebulawars: Coming from a security background, you shouldn't be exposing redis to the public in the first place.
11:10
<nebulawars>
Hehe, good one Scott
11:10
<ScottKevill>
Same as with any database.
11:13
<nebulawars>
But the concept of having authentication, if it can be bruteforced that easily is for me stange. Also that there is no different permissions when you do get the password correct. It just suppriced me, thats all.
11:14
<ScottKevill>
It's not to stop outsiders.
11:14
<ScottKevill>
It's more likely to prevent inadvertent internal screwups.
11:35
<fzzbt>
the mailing list
11:37
<fzzbt>
it reads here how to make contribution http://redis.io/community
12:21
<Piotr__>
I have a problem with redis
12:22
<Piotr__>
when I try to converAndSend an object to another host using spring data redisTemplate I get an exception
12:22
<Piotr__>
org.springframework.dao.InvalidDataAccessApiUsageException: ERR unknown command 'PUBLISH'; nested exception is redis.clients.jedis.exceptions.JedisDataException: ERR unknown command 'PUBLISH'
12:22
<Piotr__>
it works on localhost
12:22
<Piotr__>
but not when i reconfigure the hostrName to another ip
12:23
<Piotr__>
can anyonje help please
12:23
<Piotr__>
I m using JedisConnectionFactory
13:32
mattbillenstein joined
13:45
arek_deepinit joined
13:49
<saml>
hey is this good?
15:07
daniel_karlsson joined
15:17
joaojeronimo joined
16:27
napperjabber_ joined
16:46
napperjabber joined
18:03
cinemascop89 joined
18:12
cinemascop89 joined
18:12
<Dr4g>
i SETEX some strings in Redis, some register and some don'e
18:12
<Dr4g>
so when i do an EXISTS, it says yes to some, and no to others.
18:13
<Dr4g>
only thing i can think of is the values for the ones that are registering are substancially larger in size.
18:14
<rittyan>
Dr4g: try to replace set with setex to prove your theory
18:14
<rittyan>
I mean, setex with set
18:14
wizonesolutions joined
18:14
<Dr4g>
i am watching it with MONITOR
18:15
<Dr4g>
i SETEX the key
18:15
<Dr4g>
and then 2 seconds later i do EXISTS and it says no.
18:15
<Dr4g>
the TTL is 3600
18:16
<rittyan>
Dr4g: what redis version? older than 2.2?
18:16
<Dr4g>
1330384755.246011 "SETEX" "orchestra_bbww2_product_content_912394514" "-96790989"
18:16
<Dr4g>
what is that last parameter there ?
18:17
<rittyan>
SETEX key seconds value
18:17
<mjr_>
sounds like some signed / unsigned sadness
18:17
<Dr4g>
maybe it's timezone shit
18:18
<mjr_>
Also, you are missing the actual value.
18:18
<rittyan>
timezone shit cant make your time negative
18:18
<Dr4g>
i didn't paste it mjr_ :P
18:18
<Dr4g>
rittyan: what if one server is UK and the other is USA ?
18:18
<rittyan>
Dr4g: your ttl is negative, hence key is not there
18:18
<Dr4g>
rittyan: i thought so !
18:18
<rittyan>
Dr4g: what if you just stick to UTC? :-))
18:19
<Dr4g>
there's two servers here.. my App's server has this set: date_default_timezone_set('America/New_York');
18:19
<Dr4g>
the cache server is probably something else.
18:19
<rittyan>
sounds like troubles
18:19
<rittyan>
all datetimes should be in UTC within one system (one project, w/e)
18:19
<rittyan>
and should be converted into timezone specific values only to display in some UI or whatever
18:19
<rittyan>
and yes it's painful :-(
18:20
brianseeders joined
18:20
<rittyan>
Dr4g: anyway with setex you set ttl, not exact expiration time. I mean, if you set it to 10, the key will expire _after_ 10 seconds
18:21
<rittyan>
so negative values make no sense with or without timezones
18:21
<rittyan>
this value just has to be greater than zero
18:21
<Dr4g>
rittyan: ok noted.
18:22
<Dr4g>
i told it 3600, retarded
18:22
<Dr4g>
i'll change 'America/New_York' to UTC
18:23
<rittyan>
If you want key to be alive for one hour you need to "SETEX key 3600 value"
18:23
<Dr4g>
rittyan: i know,
18:26
<Dr4g>
rittyan: found the bug i think
18:26
<rittyan>
good to know :)
18:26
<Dr4g>
a bug in an if() statement and strtotime() magic
18:26
<Dr4g>
made it an official timestamp
18:27
<Dr4g>
rather than "x seconds"
18:27
<Dr4g>
TTD vs TTL madness
18:29
<Dr4g>
rittyan: YAY :D
18:29
<Dr4g>
it workz now :)
18:29
<Dr4g>
1330385532.352685 "EXISTS" "bb_localhostproduct_content_912394514"
18:29
<Dr4g>
1330385532.478260 "GET" "bb_localhostproduct_content_912394514"
18:38
<Dr4g>
rittyan: i want to setup AUTH on my redis server can you point me in the right direction ?
18:38
<rittyan>
No I can't. I never used it and in fact I see no point in using it
18:38
<Dr4g>
rittyan: why ?
18:38
<Dr4g>
its remote redis server, its not locked to 127.0.0.1
18:39
<rittyan>
we use iptables for restricting access
18:40
<rittyan>
we = in our company
18:40
<rittyan>
and I like it better than auth
18:41
<Dr4g>
i dont know the IPs and such as my servers are behind an amazon cloud with loadbalancer stuff
18:42
martincozzi_ joined
18:42
<Dr4g>
looks like it is the "requirepass foobared" option
19:37
brianseeders joined
20:02
<senderista>
reminds me, is auth gonna be deprecated at some point? i hope so, that sort of thing has no place in a simple db server afaict (not denying it may be convenient for some ppl).
20:57
martincozzi_ joined
21:05
<tenshihan>
working with the c++ addon stuff
21:05
<tenshihan>
getting pretty far (nodejs)
21:05
<tenshihan>
i am seeing this class redis::client::string_vector
21:06
<tenshihan>
how do i convert it to just a string or if it's multiple values, a serialized object? I'm passing this back to nodejs
21:22
mattbillenstein joined
21:33
<mjr_>
tenshihan: why are you dealing with C++ if you are using node?
21:39
<tenshihan>
because c++ can handle 72k connections per second to redis
21:39
<tenshihan>
and node can not
22:47
<scyclops>
i upgraded from redis 2.2 to 2.4.8 the other day and the amount of memory redis is using has been steadily increasing since then even though it's storing approximately the same amount of data - anyone know what might be going on?
22:49
<scyclops>
the script i use to estimate my data usage said i was storing 63.32 Mb of data this morning and 63.31 Mb of data right now - but redis claimed 100.29 Mb this morning and now it's saying 123.11 Mb