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 1 and Version 2 of OfficialTolArchiveNetworkRedis


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

--

Legend:

Unmodified
Added
Removed
Modified
  • OfficialTolArchiveNetworkRedis

    v1 v2  
    11= TolRedis package =
     2
     3The TolRedis package provides a TOL interface to Redis. Redis is a very efficient in memory key/value. It supports data persistence, networked client/server operation, structured value types, data expriration, clustering, multicast-like publish/subscribe, all in a very fast implementation.
     4
     5The following example illustrates a simple use of TolRedis:
     6
     7{{{
     8#!cpp
     9#Require TolRedis;
     10
     11TolRedis::@Client r = [[ Text _.host = "cox01" ]];
     12Real r::Open(?);
     13Text key = "TestWriteRead_key";
     14Real statusSET = redis::SET( key, "Hello Redis" );
     15WriteLn( "statusSET = " << statusSET );
     16Text value = redis::GET( key );
     17WriteLn( "value from GET = " << value );
     18Real r::Close(?);
     19}}}