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.

Changes between Version 2 and Version 3 of OfficialTolArchiveNetworkRedis


Ignore:
Timestamp:
Nov 14, 2011, 11:11:09 AM (13 years ago)
Author:
Jorge
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OfficialTolArchiveNetworkRedis

    v2 v3  
    99#Require TolRedis;
    1010
    11 TolRedis::@Client r = [[ Text _.host = "cox01" ]];
     11TolRedis::@Client r = [[ Text _.host = "host.domain.com" ]];
    1212Real r::Open(?);
    1313Text key = "TestWriteRead_key";
     
    1818Real r::Close(?);
    1919}}}
     20
     21The 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
     25TolRedis::@Client r = [[ Text _.host = "host.domain.com", _.port = 5555 ]];
     26}}}