]> gitweb.factorcode.org Git - factor.git/commitdiff
redis.assoc: Use redis-flushdb in clear-assoc
authorBruno Deferrari <utizoc@gmail.com>
Mon, 11 May 2009 03:50:22 +0000 (00:50 -0300)
committerBruno Deferrari <utizoc@gmail.com>
Mon, 11 May 2009 03:50:22 +0000 (00:50 -0300)
extra/redis/assoc/assoc.factor

index 2830e93b25cc7212d9cdf83d5d6f3384c36c669d..e8bdbbb9358d84656a90cfa9c0f574c3ea706a9d 100644 (file)
@@ -15,7 +15,7 @@ M: redis set-at [ redis-set drop ] with-redis ;
 
 M: redis delete-at [ redis-del drop ] with-redis ;
 
-M: redis clear-assoc [ "*" redis-keys [ redis-del drop ] each ] with-redis ;
+M: redis clear-assoc [ redis-flushdb drop ] with-redis ;
 
 M: redis equal? assoc= ;