Lua function creation on EVAL, basic Lua return type to Redis protocol convertion done.

This commit is contained in:
antirez
2011-04-30 17:46:52 +02:00
parent 21d3294c70
commit 7585836e6e
4 changed files with 111 additions and 3 deletions

View File

@ -193,7 +193,8 @@ struct redisCommand redisCommandTable[] = {
{"migrate",migrateCommand,6,0,NULL,0,0,0,0,0},
{"dump",dumpCommand,2,0,NULL,0,0,0,0,0},
{"object",objectCommand,-2,0,NULL,0,0,0,0,0},
{"client",clientCommand,-2,0,NULL,0,0,0,0,0}
{"client",clientCommand,-2,0,NULL,0,0,0,0,0},
{"eval",evalCommand,-3,0,NULL,0,0,0,0,0}
};
/*============================ Utility functions ============================ */
@ -981,6 +982,7 @@ void initServer() {
if (server.ds_enabled) dsInit();
if (server.cluster_enabled) clusterInit();
scriptingInit();
srand(time(NULL)^getpid());
}