https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6942
--- Comment #26 from Mark Martinec <[email protected]> --- > > $r->hset($_, "h", 9000); > Duh, for some reason I never did this because of "hash keys don't support > expire". But of course hash itself does. This could be the simplest way to > do, I doubt the small memory increase bothers anyone. Unfortunately this approach rules out the elegant MGET in tok_get_all, which does it all in one command. Using the hash would require two (pipelined) calls for each token. No best solution for everything :( Btw, for completeness: storing strings that look like small integers (vless than 10000) as values uses the least storage: $r->setex($_, 3024000, "9999"); mem: 114.2 bytes/key strings that look like larger integers take a bit more, but fixed space: $r->setex($_, 3024000, "10000"); mem: 138.2 bytes/key $r->setex($_, 3024000, int(2**50)); mem: 138.2 bytes/key leaving out expiration saves about 45 bytes! : $r->set($_, "9999"); mem: 69.1 bytes/key -- You are receiving this mail because: You are the assignee for the bug.
