0
私はnode.jsプロセスを実行しますが、どこにモジュールキャッシュがありますか? このプロセスのモジュールキャッシュを取得するにはどうすればよいですか?node.jsに1つのプロセスモジュールキャッシュを取得するにはどうすればよいですか?
私はnode.jsプロセスを実行しますが、どこにモジュールキャッシュがありますか? このプロセスのモジュールキャッシュを取得するにはどうすればよいですか?node.jsに1つのプロセスモジュールキャッシュを取得するにはどうすればよいですか?
if you have to store values in cache then node-redis module is best for you.
Redis is a fast and efficient in-memory key-value store. It is also known as a data structure server, as the keys can contain strings, lists, sets, hashes and other data structures.
var redis = require('redis');
var client = redis.createClient();
client.on('connect', function() {
console.log('connected');
});
client.set('framework', 'AngularJS', function(err, reply) {
console.log(reply);
});
client.get('framework', function(err, reply) {
console.log(reply);
});