Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Node.js example (node redis)

Josh Baker edited this pageFeb 21, 2017 ·1 revision

node_redis project page

Install

npm install redis

Example

All Tile38 commands should be sent using theclient.send_command(name, args, callback) function.

varredis=require("redis")varclient=redis.createClient(9851,"localhost")client.send_command("SET",["fleet","truck1","POINT","33","-115"],function(err,reply){if(err){// ERROR}else{console.log(reply)// OK}})client.send_command("GET",["fleet","truck1"],function(err,reply){if(err){// ERROR}else{console.log(reply)// {"type":"Point","coordinates":[-115,33]}}})
Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp