Let's say I have a working memcached deamon on a server. Let's say that this server is able to handle server side Javascript (APE in my case).

It should be easy to access memcached with some Javascript right on the server (I mean, in my mind...).

But I've to admit I'm running out of idea...

"Help plz" ? :)

Thanks

EDIT :

This is working :

Ape.registerCmd("CMD", true, function(params, infos) {
Ape.log("cmd called");

var socket = new Ape.sockClient("11211", "127.0.0.1", {flushlf: true});

socket.onConnect = function() {
    Ape.log("Connected to Memcached");
    Ape.log("Issued 'stats' commande to Memcached...");
   this.write("stats\n");
    this.onRead = function(data) {
        Ape.log("Data from memcached : " + data);
    }
}
//data = ...
infos.sendResponse('return', {'data':data});
});

没有正确的解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top