Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2014-07-09 02:37:01 +0400
committermichael-grunder <michael.grunder@gmail.com>2015-05-06 01:02:04 +0300
commitba9485d7ef881a99539882bba60106759cbc12e7 (patch)
tree82a677572ec2d870178a7c4b11662c516795363b /redis_cluster.h
parentb0152f2c0d40eb0cb6f6e5ed52c529d7e8302772 (diff)
EVAL/EVALSHA
Implemented EVAL and EVALSHA commands for cluster. Thes commands present a bit of an issue from the context of a client. Given that the code being executed can be any arbitrary LUA code, phpredis can't always protect against trying to access keys that live on a different cluster node, especially if the "keys count" isn't passed correctly, or in cases where the keys are generated in the script. Work in progress, but there is unlikely a perfect solution to this at all, given the nature of Redis Cluster and LUA execution.
Diffstat (limited to 'redis_cluster.h')
-rw-r--r--redis_cluster.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/redis_cluster.h b/redis_cluster.h
index e7d2255c..66c4c35c 100644
--- a/redis_cluster.h
+++ b/redis_cluster.h
@@ -220,6 +220,8 @@ PHP_METHOD(RedisCluster, subscribe);
PHP_METHOD(RedisCluster, psubscribe);
PHP_METHOD(RedisCluster, unsubscribe);
PHP_METHOD(RedisCluster, punsubscribe);
+PHP_METHOD(RedisCluster, eval);
+PHP_METHOD(RedisCluster, evalsha);
/* SCAN and friends */
PHP_METHOD(RedisCluster, scan);