मान लें कि मेरे पास एक सर्वर पर एक काम कर रहे memcached deamon है। मान लें कि यह सर्वर सर्वर पक्ष जावास्क्रिप्ट (APE मेरे मामले में) को संभालने में सक्षम है।मैं जावास्क्रिप्ट के साथ memcached कैसे उपयोग कर सकते हैं?
सर्वर पर कुछ जावास्क्रिप्ट के साथ memcached तक पहुंचना आसान होना चाहिए (मेरा मतलब है, मेरे दिमाग में ...)।
लेकिन मैं मैं विचार से बाहर चल रहा हूँ स्वीकार करने के लिए है ...
"सहायता plz"? :)
धन्यवाद
संपादित करें:
यह काम कर रहा है:
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});
});
मुझे लगता है कि जिस तरह से खुदाई कर रहा था ... देखते रहें :) – bPizzi