close
Warning:
Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Nov 14, 2011, 11:11:09 AM (13 years ago)
- Author:
-
Jorge
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v2
|
v3
|
|
9 | 9 | #Require TolRedis; |
10 | 10 | |
11 | | TolRedis::@Client r = [[ Text _.host = "cox01" ]]; |
| 11 | TolRedis::@Client r = [[ Text _.host = "host.domain.com" ]]; |
12 | 12 | Real r::Open(?); |
13 | 13 | Text key = "TestWriteRead_key"; |
… |
… |
|
18 | 18 | Real r::Close(?); |
19 | 19 | }}} |
| 20 | |
| 21 | The previous example open a connection to the server {{{host.domain.com}}}, write a string value into the key {{{TestWriteRead_key}}} and then read it back from the server. The redis server is expected to be running at the specified host. By default de server is listenig at port 6379. If another port is used by the server the client can specify the number as an argument to {{{TolRedis::@Client}}} construction, ie.: |
| 22 | |
| 23 | {{{ |
| 24 | #!cpp |
| 25 | TolRedis::@Client r = [[ Text _.host = "host.domain.com", _.port = 5555 ]]; |
| 26 | }}} |