2010-11-17 03:44:54 -05:00
|
|
|
$OpenBSD: patch-redis_c,v 1.3 2010/11/17 08:44:54 dcoppa Exp $
|
Import databases/redis.
Redis is an advanced key-value store. It is similar to memcached
but the dataset is not volatile, and values can be strings, exactly
like in memcached, but also lists, sets, and ordered sets. All this
data types can be manipulated with atomic operations to push/pop
elements, add/remove elements, perform server side union, intersection,
difference between sets, and so forth.
In order to be very fast but at the same time persistent the whole
dataset is taken in memory, and from time to time saved on disc
asynchronously (semi persistent mode) or alternatively every change
is written into an append only file (fully persistent mode).
OK sthen@, landry@
2010-10-10 11:50:06 -04:00
|
|
|
|
|
|
|
Fix an alignment problem that was causing a SIGBUS on strict alignment
|
|
|
|
archs like SPARC
|
|
|
|
|
2010-11-17 03:44:54 -05:00
|
|
|
--- redis.c.orig Sat Nov 6 10:09:28 2010
|
|
|
|
+++ redis.c Wed Nov 17 08:35:50 2010
|
|
|
|
@@ -7447,7 +7447,7 @@ static int deleteIfVolatile(redisDb *db, robj *key) {
|
Import databases/redis.
Redis is an advanced key-value store. It is similar to memcached
but the dataset is not volatile, and values can be strings, exactly
like in memcached, but also lists, sets, and ordered sets. All this
data types can be manipulated with atomic operations to push/pop
elements, add/remove elements, perform server side union, intersection,
difference between sets, and so forth.
In order to be very fast but at the same time persistent the whole
dataset is taken in memory, and from time to time saved on disc
asynchronously (semi persistent mode) or alternatively every change
is written into an append only file (fully persistent mode).
OK sthen@, landry@
2010-10-10 11:50:06 -04:00
|
|
|
|
|
|
|
static void expireGenericCommand(redisClient *c, robj *key, robj *param, long offset) {
|
|
|
|
dictEntry *de;
|
|
|
|
- time_t seconds;
|
|
|
|
+ long seconds;
|
|
|
|
|
|
|
|
if (getLongFromObjectOrReply(c, param, &seconds, NULL) != REDIS_OK) return;
|
|
|
|
|