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, 10:59:11 AM (14 years ago)
- Author:
-
Jorge
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v1
|
v2
|
|
| 1 | 1 | = TolRedis package = |
| | 2 | |
| | 3 | The 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 | |
| | 5 | The following example illustrates a simple use of TolRedis: |
| | 6 | |
| | 7 | {{{ |
| | 8 | #!cpp |
| | 9 | #Require TolRedis; |
| | 10 | |
| | 11 | TolRedis::@Client r = [[ Text _.host = "cox01" ]]; |
| | 12 | Real r::Open(?); |
| | 13 | Text key = "TestWriteRead_key"; |
| | 14 | Real statusSET = redis::SET( key, "Hello Redis" ); |
| | 15 | WriteLn( "statusSET = " << statusSET ); |
| | 16 | Text value = redis::GET( key ); |
| | 17 | WriteLn( "value from GET = " << value ); |
| | 18 | Real r::Close(?); |
| | 19 | }}} |