-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.js
44 lines (39 loc) · 1.18 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* New node file
*/
//var NodeCache = require( "node-cache" );
//var myCache = new NodeCache( { stdTTL: 100, checkperiod: 120 } );
//
//obj = { my: "Special", variable: 42 };
//myCache.set( "myKey", obj, function( err, success ){
// if( !err && success ){
// console.log( success );
// // true
// // ... do something ...
// }
//});
//
//myCache.get( "myKey", function( err, value ){
// if( !err ){
// console.log( value );
// // { "myKey": { my: "Special", variable: 42 } }
// // ... do something ...
// }
// });
//var cql = require('node-cassandra-cql');
//var client = new cql.Client({hosts: ['localhost'], keyspace: 'mykeyspace'});
////client.execute('SELECT fname,lname FROM fusers WHERE fname=?', ['ilker'],
//client.execute('ALTER TABLE fusers add newc2 varchar', [],
// function(err, result) {
// if (err) console.log(err);
// else console.log('got user profile with email ' + result);
// }
//);
//var WebSocketServer = require('ws').Server
// , wss = new WebSocketServer({port: 9980});
//wss.on('connection', function(ws) {
// ws.on('message', function(message) {
// console.log('received: %s', message);
// });
// ws.send('something');
//});